hscc

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

commit 973418ffcc913c7cd7536f1c3201e365e5585208
parent d025a4fd8460b4ccd001d14861b8cdbbffeddb76
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Sat,  6 Mar 2021 10:02:13 -0500

Modify footer's html

Diffstat:
Mtemplates/default.html | 32+++++++++++++++-----------------
Mtemplates/index.html | 2+-
Mtemplates/posttypes/article.html | 33+++++++++++++++------------------
3 files changed, 31 insertions(+), 36 deletions(-)

diff --git a/templates/default.html b/templates/default.html @@ -1,21 +1,19 @@ <article class="h-entry hentry"> <%- content %> - - <footer> - <p> - 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> - </p> + <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>. + <% end %> + <% if posse then %> + Voir sur + <% for k, v in pairs(posse) do %> + <a class="u-syndication" href="<%- v -%>" rel="syndication external"><%- k -%></a>, + <% end %> + <% end %> + </div> </footer> </article> diff --git a/templates/index.html b/templates/index.html @@ -22,7 +22,7 @@ <div class="p-note"> <p> - <a class="u-url u-uid" href="https://hugo.soucy.cc/#hs" rel="me">Je</a> suis un <a href="https://hugo.soucy.cc/file/curriculum-vitae.html#cv" property="sameAs"><span class="p-job-title" property="jobTitle">développeur front-end</span></a> (ou <abbr title="Programmeur en Robustesse Esthétique">PRE</abbr>). Ici, se trouve mon port d'attache en ligne, où je me manifeste généralement sous le pseudo <strong class="p-nickname" property="foaf:nick">hs0ucy</strong>. <a href="https://keyoxide.org/hkp/hugo@soucy.cc" property="sameAs" rel="external">Je suis</a> surtout présent sur <span typeof="foaf:OnlineAccount" property="foaf:account"><a href="https://bandcamp.com/hs0ucy" property="foaf:accountProfilePage" rel="external nofollow me"><span property="dc:title">Bandcamp</span></a></span>, Freenode, <span typeof="foaf:OnlineAccount" property="foaf:account"><a href="https://mastodon.sdf.org/@hs0ucy" property="foaf:accountProfilePage" rel="external nofollow me"><span property="dc:title">Mastodon</span></a></span>, <a href="/xmpp.html">XMPP</a>; j'ai quelques commits sur <a href="https://soucy.cc/git/" rel="external">Git</a>&hellip;<a href="https://codeberg.org/hs0ucy" rel="external">Git</a>&hellip;<span typeof="foaf:OnlineAccount" property="foaf:account"><a href="https://github.com/hs0ucy" property="foaf:accountProfilePage" rel="external nofollow me"><span property="dc:title">GitHub</span></a></span>. Hors ligne, on peut me croiser dans les rues de <span typeof="http://schema.org/PostalAddress" property="address"><strong class="p-locality" property="addressLocality">Lévis</strong></span> ou Québec. Sinon, vous pouvez communiquer avec moi par courriel à l'adresse <a href="mailto:hugo@soucy.cc" property="email" rel="me"> <span class="u-email">hugo@soucy.cc</span></a>. + <a class="u-url u-uid" href="https://hugo.soucy.cc/#hs" rel="me">Je</a> suis un <a href="https://hugo.soucy.cc/file/curriculum-vitae.html#cv" property="sameAs"><span class="p-job-title" property="jobTitle">développeur front-end</span></a> (ou <abbr title="Programmeur en Robustesse Esthétique">PRE</abbr>). Ici, se trouve mon port d'attache en ligne, où je me manifeste généralement sous le pseudo <strong class="p-nickname" property="foaf:nick">hs0ucy</strong>. <a href="https://keyoxide.org/hkp/hugo@soucy.cc" property="sameAs" rel="external">Je suis</a> surtout présent sur <span typeof="foaf:OnlineAccount" property="foaf:account"><a href="https://bandcamp.com/hs0ucy" property="foaf:accountProfilePage" rel="external nofollow me"><span property="dc:title">Bandcamp</span></a></span>, Freenode, <span typeof="foaf:OnlineAccount" property="foaf:account"><a href="https://mastodon.sdf.org/@hs0ucy" property="foaf:accountProfilePage" rel="external nofollow me"><span property="dc:title">Mastodon</span></a></span>, <a href="/xmpp.html">XMPP</a>; j'ai quelques commits sur <a href="https://soucy.cc/git/" rel="external">Git</a>&hellip;<a href="https://gitlab.com/hs0ucy/" rel="external">Git</a>&hellip;<span typeof="foaf:OnlineAccount" property="foaf:account"><a href="https://github.com/hs0ucy" property="foaf:accountProfilePage" rel="external nofollow me"><span property="dc:title">GitHub</span></a></span>. Hors ligne, on peut me croiser dans les rues de <span typeof="http://schema.org/PostalAddress" property="address"><strong class="p-locality" property="addressLocality">Lévis</strong></span> ou Québec. Sinon, vous pouvez communiquer avec moi par courriel à l'adresse <a href="mailto:hugo@soucy.cc" property="email" rel="me"> <span class="u-email">hugo@soucy.cc</span></a>. </p> <p> diff --git a/templates/posttypes/article.html b/templates/posttypes/article.html @@ -11,24 +11,21 @@ <%- content %> </div> - <footer> - <p> - 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> - </p> + <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>. + <% end %> + <% if posse then %> + Voir sur + <% for k, v in pairs(posse) do %> + <a class="u-syndication" href="<%- v -%>" rel="syndication external"><%- k -%></a>, + <% end %> + <% end %> + </div> </footer> <a