hscc

The personnal website source code of 'Hugo Soucy' <https://hugo.soucy.cc/>. Creates from an homebrewed static website generator.
Log | Files | Refs

commit 9191f003f4f2af2c36ae8b0151c0bcf836902490
parent 1d062ca4aa0538887346eb6c86bc91f60bc72603
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Mon, 28 Dec 2020 13:38:55 -0500

Display the text posttype icon

Diffstat:
Mtemplates/posttypes/article.html | 4++++
Mtemplates/publications.html | 12++++++++++--
2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/templates/posttypes/article.html b/templates/posttypes/article.html @@ -1,4 +1,8 @@ <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> + Texte + </small> <h1 class="p-name"> <%- title %> </h1> diff --git a/templates/publications.html b/templates/publications.html @@ -36,9 +36,17 @@ <blockquote class="h-cite hcite"> <%- child.replyto -%> </blockquote> - <% elseif child.posttype == 'article' and child.summary then %> + <% elseif child.posttype == 'article' then %> + <small class="hentry__posttype"> + <svg class="ico" height="24" width="24" role="image"><use href="#ico_article"></use></svg> + Texte + </small> + <h2 class="p-name"><%= child.title -%></h2> - <p class="p-content"><%- child.summary -%></p> + + <% if child.summary then %> + <p class="p-content"><%- child.summary -%></p> + <% end %> <% else %> <h2 class="visuallyhidden"> <%= child.title -%>