hscc

The personnal website source code of Hugo Soucy. Creates from an homebrewed static website generator.
Log | Files | Refs

commit 92b3afd6cc69ec3350b84d4e3789fdd4294a2d62
parent 86b30894cfe25fddf97c91f33e398c0d32846041
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Fri, 13 Nov 2020 20:15:59 -0500

Add some classes

Diffstat:
Mtemplates/posttypes/article.html | 4++--
Mtemplates/posttypes/bookmark.html | 17+++++++++--------
Mtemplates/posttypes/note.html | 25++++++++++++++++++++++---
3 files changed, 33 insertions(+), 13 deletions(-)

diff --git a/templates/posttypes/article.html b/templates/posttypes/article.html @@ -1,9 +1,9 @@ -<article class="h-entry hentry"> +<article class="h-entry hentry as-article"> <h1 class="p-name"> <%- title %> </h1> - <div class="e-content"> + <div class="p-content e-content"> <%- content %> </div> diff --git a/templates/posttypes/bookmark.html b/templates/posttypes/bookmark.html @@ -1,5 +1,5 @@ <article class="h-entry hentry"> - <h1> + <h1 class="p-name"> <a class="u-bookmark-of h-cite" href="<%= url -%>" @@ -10,24 +10,25 @@ <div class="e-content"> <%- content -%> + </div> - <% if keywords then %> + <% if keywords then %> <ul class="hentry__categories"> <% for i, keyword in ipairs(keywords) do %> - <li> - <em class="p-category"><%- keyword -%></em> - </li> + <li> + <em class="p-category"><%- keyword -%></em> + </li> <% end %> </ul> - <% end %> - </div> + <% end %> <footer class="hentry__footer"> <div> + <a class="u-url" href="<%- permalink -%>">#</a> 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="http://assets.soucy.cc/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 %> </div> diff --git a/templates/posttypes/note.html b/templates/posttypes/note.html @@ -3,16 +3,22 @@ <%= date -%> @ <%= datetime -%> </h1> - <div class="p-name p-content e-content"> - <%- content %> + <div class="p-name e-content"> + <%- content -%> </div> <footer class="hentry__footer"> <div> + <a class="u-url" href="<%- permalink -%>">#</a> 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="http://assets.soucy.cc/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 %> + Voir sur <% if posse then %> + <% for k, v in pairs(posse) do %> + <a class="u-syndication" href="<%- v -%>" rel="syndication external"><%- k -%></a>, + <% end %> <% end %> </div> @@ -36,4 +42,17 @@ aria-hidden="true" class="visuallyhidden" href="https://fed.brid.gy/"></a> + + <aside class="webmention-herokuapp"> + <script id="webmention-hosted"> + (function () { + var sn = document.createElement("script"), s = document.getElementsByTagName("script")[0], url; + url = document.querySelectorAll ? document.querySelectorAll("link[rel~=canonical]") : false; + url = url && url[0] ? url[0].href : false; + sn.type = "text/javascript"; sn.async = true; + sn.src = "//webmention.herokuapp.com/api/embed?url=" + encodeURIComponent(url || window.location); + s.parentNode.insertBefore(sn, s); + }()); + </script> + </aside> </article>