hscc

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

commit 41e8e911b5db6f00483222ad679f83dc7576b3ff
parent c873b390f291fd4ee8b92ee4bb29192f5fff3298
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Sun, 20 Dec 2020 23:02:41 -0500

Display summary and other conditions

Diffstat:
Mtemplates/publications.html | 11++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/templates/publications.html b/templates/publications.html @@ -36,15 +36,20 @@ <blockquote class="h-cite hcite"> <%- child.replyto -%> </blockquote> + <% elseif child.posttype == 'article' and child.summary then %> + <h2 class="p-name"><%= child.title -%></h2> + <p class="p-content"><%- child.summary -%></p> <% else %> <h2 class="visuallyhidden"> <%= child.title -%> </h2> <% end %> - <div class="e-content<% if child.posttype == 'note' then %> p-name<% end %>"> - <%- child.content -%> - </div> + <% if not child.summary then %> + <div class="e-content<% if child.posttype == 'note' then %> p-name<% end %>"> + <%- child.content -%> + </div> + <% end %> <footer class="hentry__footer"> <% if child.keywords and child.posttype == 'bookmark' then %>