hscc

Soure code of <https://hugo.soucy.cc>.
git clone git://soucy.cc/hscc.git
Log | Files | Refs

commit 6c11a263b5146c4ed5b81a425f1ea5a4d9c37607
parent ea00f7ffcec9d90b308f71863812507e74c7c31f
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Sun, 24 Apr 2022 20:23:17 -0400

Work on templates modify prev/next/up

Diffstat:
Mtemplates/archives.html | 2+-
Mtemplates/footer.html | 2+-
Mtemplates/layout.html | 1+
Mtemplates/posttypes/article.html | 40++++++++++++++++++++--------------------
Mtemplates/posttypes/bookmark.html | 22+++++++++++-----------
Mtemplates/posttypes/note.html | 20++++++++++----------
Mtemplates/posttypes/reply.html | 20++++++++++----------
7 files changed, 54 insertions(+), 53 deletions(-)

diff --git a/templates/archives.html b/templates/archives.html @@ -2,11 +2,11 @@ href="/css/archives.min.css" media="screen" rel="stylesheet"/> + <script defer="" src="/js/archives.min.js"></script> <div> <%- content %> - <% if archives_children then %> <ul class="archives-list" data-js-archives="list"> <% local years_keys = {} %> diff --git a/templates/footer.html b/templates/footer.html @@ -10,7 +10,7 @@ src="/icon.white.svg" width="20px" /></a> | <a href="/biscuits.html">Ce site sans biscuit</a> - <a href="https://1mb.club/" rel="external">qui ne drainera pas votre batterie</a> est propulsé par <a href="/satelito.html">Satelito</a>, un générateur de site statique écrit en lua. | + <a href="https://1mb.club/" rel="external">qui ne drainera pas votre batterie</a> est propulsé par <a href="https://codeberg.org/hs0ucy/Satelito" rel="external">Satelito</a>, un générateur de site statique écrit en lua. | <a href="https://creativecommons.org/licenses/by-sa/2.5/ca/deed.fr" rel="external license"> diff --git a/templates/layout.html b/templates/layout.html @@ -12,6 +12,7 @@ <img alt="hs0ucy" src="/hs0ucy.png" height="40" width="126" /> </picture> </a> + <a class="go-to-nav" href="#n"> <svg aria-hidden="true" class="ico" height="24" role="image" width="24"><use href="#ico_nav"></use></svg> <span class="visuallyhidden">Aller au&nbsp;</span>menu<span class="visuallyhidden"> de navigation</span> diff --git a/templates/posttypes/article.html b/templates/posttypes/article.html @@ -22,7 +22,7 @@ <% end %> <footer class="hentry__footer"> - <div> + <p> <a aria-current="page" class="u-url" href="<%- permalink -%>" rel="bookmark"> <span class="visuallyhidden">Permalien</span> <svg aria-hidden="true" class="ico" height="24" role="image" width="24"><use href="#ico_link"></use></svg> @@ -38,26 +38,26 @@ <a class="u-syndication" href="<%- v -%>" rel="syndication external"><%- k -%></a>, <% end %> <% end %> - </div> + </p> - <div> - <a class="button" href="/<%= date:sub(1,4) -%>" rel="up"> - <svg class="ico" height="24" width="24" role="image"><use href="#ico_chevron_left"></use></svg> - <span><span class="visuallyhidden">Retourner aux </span>publications</span> - </a> - <a class="button" href="/<%= date:sub(1,4) -%>/tx" rel="up"> - <svg class="ico" height="24" width="24" role="image"><use href="#ico_chevron_left"></use></svg> - <span><span class="visuallyhidden">Retourner aux </span>textes</span> - </a> - </div> + <p> + [<a href="/<%= date:sub(1,4) -%>" rel="prev">Publications</a>] + [<a href="../tx/" rel="up">Remonter</a>] + <% if relprev then %> + [<a href="<%= relprev.rellink -%>" rel="prev">Précédent</a>] + <% end %> + <% if relnext then %> + [<a href="<%= relnext.rellink -%>" rel="next">Suivant</a>] + <% end %> + </p> </footer> - <a - aria-hidden="true" - class="visuallyhidden" - href="https://brid.gy/publish/mastodon"></a> - <a - aria-hidden="true" - class="visuallyhidden" - href="https://fed.brid.gy/"></a> + <!-- <a + aria-hidden="true" + class="visuallyhidden" + href="https://brid.gy/publish/mastodon"></a> + <a + aria-hidden="true" + class="visuallyhidden" + href="https://fed.brid.gy/"></a> --> </article> diff --git a/templates/posttypes/bookmark.html b/templates/posttypes/bookmark.html @@ -36,7 +36,7 @@ Publié le <time class="dt-published" datetime="<%= date -%>T<%= datetime -%>"><%= date -%></time>, par <a class="p-author author h-card" href="<%= author.uri -%>" rel="author"><i><%= author.name -%></i><img alt="" class="u-photo visuallyhidden" src="/images/hugosoucy/favicon/hs-autoportrait-2010-nb-favion-32x32.png"/></a>. <% if tonumber(os.date('%Y%m%d%H%M%S', time_modification)) > tonumber(time_created) then %> - Mise à jour <time class="dt-updated"><%= os.date('%Y-%m-%d %H:%M:%S', time_modification) -%></time>. + Mise à jour <time class="dt-updated"><%= os.date('%Y-%m-%d %H:%M:%S', time_modification) -%></time>. <% end %> <% if posse then %> Voir sur @@ -46,16 +46,16 @@ <% end %> </div> - <div> - <a class="button" href="/<%= date:sub(1,4) -%>" rel="up"> - <svg class="ico" height="24" width="24" role="image"><use href="#ico_chevron_left"></use></svg> - <span><span class="visuallyhidden">Retourner aux </span>publications</span> - </a> - <a class="button" href="/<%= date:sub(1,4) -%>/mp" rel="up"> - <svg class="ico" height="24" width="24" role="image"><use href="#ico_chevron_left"></use></svg> - <span><span class="visuallyhidden">Retourner aux </span>marques-pages</span> - </a> - </div> + <p> + [<a href="/<%= date:sub(1,4) -%>" rel="prev">Publications</a>] + [<a href="../mp/" rel="up">Remonter</a>] + <% if relprev then %> + [<a href="<%= relprev.rellink -%>" rel="prev">Précédent</a>] + <% end %> + <% if relnext then %> + [<a href="<%= relnext.rellink -%>" rel="next">Suivant</a>] + <% end %> + </p> </footer> <a diff --git a/templates/posttypes/note.html b/templates/posttypes/note.html @@ -56,16 +56,16 @@ </div> <% if tonumber(time_created) > 20201101000000 then %> - <div> - <a class="button" href="/<%= date:sub(1,4) -%>" rel="up"> - <svg class="ico" height="24" width="24" role="image"><use href="#ico_chevron_left"></use></svg> - <span><span class="visuallyhidden">Retourner aux </span>publications</span> - </a> - <a class="button" href="/<%= date:sub(1,4) -%>/nt" rel="up"> - <svg class="ico" height="24" width="24" role="image"><use href="#ico_chevron_left"></use></svg> - <span><span class="visuallyhidden">Retourner aux </span>notes</span> - </a> - </div> + <p> + [<a href="/<%= date:sub(1,4) -%>" rel="prev">Publications</a>] + [<a href="../nt/" rel="up">Remonter</a>] + <% if relprev then %> + [<a href="<%= relprev.rellink -%>" rel="prev">Précédent</a>] + <% end %> + <% if relnext then %> + [<a href="<%= relnext.rellink -%>" rel="next">Suivant</a>] + <% end %> + </p> <% end %> </footer> diff --git a/templates/posttypes/reply.html b/templates/posttypes/reply.html @@ -27,16 +27,16 @@ <% end %> </div> - <div> - <a class="button" href="/<%= date:sub(1,4) -%>" rel="up"> - <svg aria-hidden="true" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M2 7H5V17H2V7Z" fill="currentColor" /><path d="M6 12L13.0023 7.00003V17L6 12Z" fill="currentColor" /><path d="M21.0023 7.00003L14 12L21.0023 17V7.00003Z" fill="currentColor" /></svg> - <span><span class="visuallyhidden">Retourner aux </span>publications</span> - </a> - <a class="button" href="/<%= date:sub(1,4) -%>/rp" rel="up"> - <svg aria-hidden="true" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M18 17L10 12L18 7V17Z" fill="currentColor" /><path d="M6 7H9V17H6V7Z" fill="currentColor" /></svg> - <span><span class="visuallyhidden">Retourner aux </span>réponses</span> - </a> - </div> + <p> + [<a href="/<%= date:sub(1,4) -%>" rel="prev">Publications</a>] + [<a href="../rp/" rel="up">Remonter</a>] + <% if relprev then %> + [<a href="<%= relprev.rellink -%>" rel="prev">Précédent</a>] + <% end %> + <% if relnext then %> + [<a href="<%= relnext.rellink -%>" rel="next">Suivant</a>] + <% end %> + </p> </footer> <a