hscc

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

commit 7003b67f7eef6528e36c1af22d5fda6a60f3e28a
parent 39112dc5dd62bff0669934db842dc2c1b173eb41
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Thu,  9 Sep 2021 22:21:44 -0400

Enhance posttypes templates

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

diff --git a/templates/posttypes/article.html b/templates/posttypes/article.html @@ -1,6 +1,6 @@ <article class="h-entry hentry as-article"> <small class="hentry__posttype"> - <svg class="ico" height="24" width="24" role="image"><use href="#ico_article"></use></svg> + <svg aria-hidden="true" class="ico" height="24" width="24" role="image"><use href="#ico_article"></use></svg> Texte </small> <h1 class="p-name"> @@ -26,6 +26,17 @@ <% end %> <% end %> </div> + + <div> + <a class="button" href="/<%= os.date('%Y') -%>" 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"> + <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> </footer> <a diff --git a/templates/posttypes/bookmark.html b/templates/posttypes/bookmark.html @@ -1,6 +1,6 @@ <article class="h-entry hentry"> <small class="hentry__posttype"> - <svg class="ico" height="24" width="24" role="image"><use href="#ico_bookmark"></use></svg> + <svg aria-hidden="true" class="ico" height="24" width="24" role="image"><use href="#ico_bookmark"></use></svg> Marque-page </small> diff --git a/templates/posttypes/note.html b/templates/posttypes/note.html @@ -1,6 +1,6 @@ <article class="h-entry hentry as-note"> <small class="hentry__posttype"> - <svg class="ico" height="24" width="24" role="image"><use href="#ico_note"></use></svg> + <svg aria-hidden="true" class="ico" height="24" width="24" role="image"><use href="#ico_note"></use></svg> Note </small> <h1 class="visuallyhidden"> diff --git a/templates/posttypes/reply.html b/templates/posttypes/reply.html @@ -1,6 +1,6 @@ <article class="h-entry hentry"> <small class="hentry__posttype"> - <svg class="ico" height="24" width="24" role="image"><use href="#ico_corner_down_left"></use></svg> + <svg aria-hidden="true" class="ico" height="24" width="24" role="image"><use href="#ico_corner_down_left"></use></svg> <span>En réponse à </span><cite><a href="<%- url -%>" class="u-in-reply-to" rel="external"><%- url -%></a></cite>. </small>