hscc

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

commit 958c25494a6ee30f3f00db0ffafb6620c7b634f8
parent bfe62ef97ff00d99d1a059e055c73e60e19e2b1a
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Sun,  3 Oct 2021 19:26:13 -0400

Change back links

Diffstat:
Mtemplates/posttypes/article.html | 6+++---
Mtemplates/posttypes/bookmark.html | 4++--
Mtemplates/posttypes/note.html | 4++--
Mtemplates/posttypes/reply.html | 4++--
4 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/templates/posttypes/article.html b/templates/posttypes/article.html @@ -12,7 +12,7 @@ </div> <% if keywords then %> - <ul class="hentry__categories"> + <ul aria-label="Liste de mots clés" class="hentry__categories"> <% for i, keyword in ipairs(keywords) do %> <li> <a class="p-category" href="/tg.html#<%- keyword:gsub("%s+", "-") -%>" rel="tag"><%- keyword -%></a> @@ -38,11 +38,11 @@ </div> <div> - <a class="button" href="/<%= os.date('%Y') -%>" rel="up"> + <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="/<%= os.date('%Y') -%>/tx" rel="up"> + <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> diff --git a/templates/posttypes/bookmark.html b/templates/posttypes/bookmark.html @@ -38,11 +38,11 @@ </div> <div> - <a class="button" href="/<%= os.date('%Y') -%>" rel="up"> + <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="/<%= os.date('%Y') -%>/mp" rel="up"> + <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> diff --git a/templates/posttypes/note.html b/templates/posttypes/note.html @@ -53,11 +53,11 @@ </div> <div> - <a class="button" href="/<%= os.date('%Y') -%>" rel="up"> + <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="/<%= os.date('%Y') -%>/nt" rel="up"> + <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> diff --git a/templates/posttypes/reply.html b/templates/posttypes/reply.html @@ -28,11 +28,11 @@ </div> <div> - <a class="button" href="/<%= os.date('%Y') -%>" rel="up"> + <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="/<%= os.date('%Y') -%>/rp" rel="up"> + <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>