commit 8716cf28c1d23e41b37751ac1e3736e259c84700
parent cf1eed337ac1d0c97ec77324cb32d8fd07e67ca4
Author: Hugo Soucy <hugo@soucy.cc>
Date: Tue, 28 Mar 2023 12:41:18 -0400
Add the new footer include
Diffstat:
8 files changed, 10 insertions(+), 216 deletions(-)
diff --git a/templates/footer.html b/templates/footer.html
@@ -10,7 +10,7 @@
src="/icon.white.svg"
width="20px" /></a> |
<a href="/biscuits.html">Ce site sans biscuit</a>
- <a href="https://1mb.club/" rel="external">qui ne drainera pas votre batterie</a> est propulsé par <a href="https://codeberg.org/hs0ucy/Satelito" rel="external">Satelito</a>, un générateur de site statique écrit en lua. |
+ <a href="https://512kb.club/" rel="external">qui ne drainera pas votre batterie</a> est propulsé par <a href="https://codeberg.org/hs0ucy/Satelito" rel="external">Satelito</a>, un générateur de site statique écrit en lua. |
<a
href="https://creativecommons.org/licenses/by-sa/2.5/ca/deed.fr"
rel="external license">
diff --git a/templates/head.html b/templates/head.html
@@ -1,4 +1,4 @@
-<head>
+<head profile="http://gmpg.org/xfn/11">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title><%= title -%> — <%= siteurl:match('^%w+://([^/]+)') -%></title>
@@ -25,8 +25,8 @@
title="Publications de l'année <%= os.date('%Y') -%>"
type="application/atom+xml" />
<!-- Switchboard is a WebSub hub -->
- <link href="https://hugo.soucy.cc/" rel="self" />
- <link href="https://switchboard.p3k.io/" rel="hub">
+ <!-- <link href="https://hugo.soucy.cc/" rel="self" />
+ <link href="https://switchboard.p3k.io/" rel="hub"> -->
<!-- Webmentions -->
<link href="https://webmention.herokuapp.com/api/webmention" rel="webmention" />
<link href="https://webmention.io/hugo.soucy.cc/webmention" rel="webmention" />
diff --git a/templates/posttypes/article.html b/templates/posttypes/article.html
@@ -21,43 +21,5 @@
</ul>
<% end %>
- <footer class="hentry__footer">
- <p>
- <a aria-current="page" class="u-url" href="<%- permalink -%>" rel="bookmark">
- <span class="visuallyhidden">Permalien</span>
- <svg aria-hidden="true" class="ico" height="24" role="image" width="24"><use href="#ico_link"></use></svg>
- </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="/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 %>
- </p>
-
- <p>
- [<a href="/<%= date:sub(1,4) -%>" rel="prev">Publications</a>]
- [<a href="../tx/" rel="up">Remonter</a>]
- <% if relprev then %>
- [<a href="<%= relprev.rellink -%>" rel="prev">Précédent</a>]
- <% end %>
- <% if relnext then %>
- [<a href="<%= relnext.rellink -%>" rel="next">Suivant</a>]
- <% end %>
- </p>
- </footer>
-
- <!-- <a
- aria-hidden="true"
- class="visuallyhidden"
- href="https://brid.gy/publish/mastodon"></a>
- <a
- aria-hidden="true"
- class="visuallyhidden"
- href="https://fed.brid.gy/"></a> -->
+ <%- include("footer-entry") %>
</article>
diff --git a/templates/posttypes/bookmark.html b/templates/posttypes/bookmark.html
@@ -27,43 +27,5 @@
</ul>
<% end %>
- <footer class="hentry__footer">
- <div>
- <a aria-current="page" class="u-url" href="<%- permalink -%>" rel="bookmark">
- <span class="visuallyhidden">Permalien</span>
- <svg aria-hidden="true" class="ico" height="24" role="image" width="24"><use href="#ico_link"></use></svg>
- </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="/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>
-
- <p>
- [<a href="/<%= date:sub(1,4) -%>" rel="prev">Publications</a>]
- [<a href="../mp/" rel="up">Remonter</a>]
- <% if relprev then %>
- [<a href="<%= relprev.rellink -%>" rel="prev">Précédent</a>]
- <% end %>
- <% if relnext then %>
- [<a href="<%= relnext.rellink -%>" rel="next">Suivant</a>]
- <% end %>
- </p>
- </footer>
-
- <a
- aria-hidden="true"
- class="visuallyhidden"
- href="https://brid.gy/publish/mastodon"></a>
- <a
- aria-hidden="true"
- class="visuallyhidden"
- href="https://fed.brid.gy/"></a>
+ <%- include("footer-entry") %>
</article>
diff --git a/templates/posttypes/like.html b/templates/posttypes/like.html
@@ -9,24 +9,6 @@
</a>
</p>
- <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="/images/hugosoucy/favicon/hs-autoportrait-2010-nb-favion-32x32.png"/>
- </a>
- </p>
- </footer>
+ <%- include("footer-entry") %>
</article>
<!-- https://indieweb.org/like -->
diff --git a/templates/posttypes/note.html b/templates/posttypes/note.html
@@ -36,58 +36,5 @@
</ul>
<% end %>
- <footer class="hentry__footer">
- <div>
- <a aria-current="page" class="u-url" href="<%- permalink -%>" rel="bookmark">
- <span class="visuallyhidden">Permalien</span>
- <svg aria-hidden="true" class="ico" height="24" role="image" width="24"><use href="#ico_link"></use></svg>
- </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="/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>
-
- <% if tonumber(time_created) > 20201101000000 then %>
- <p>
- [<a href="/<%= date:sub(1,4) -%>" rel="prev">Publications</a>]
- [<a href="../nt/" rel="up">Remonter</a>]
- <% if relprev then %>
- [<a href="<%= relprev.rellink -%>" rel="prev">Précédent</a>]
- <% end %>
- <% if relnext then %>
- [<a href="<%= relnext.rellink -%>" rel="next">Suivant</a>]
- <% end %>
- </p>
- <% end %>
- </footer>
-
- <a
- aria-hidden="true"
- class="visuallyhidden"
- href="https://brid.gy/publish/mastodon"></a>
- <a
- 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>
+ <%- include("footer-entry") %>
</article>
diff --git a/templates/posttypes/reply.html b/templates/posttypes/reply.html
@@ -18,46 +18,5 @@
</ul>
<% end %>
- <footer class="hentry__footer">
- <div>
- 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="/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 %>
- </div>
-
- <p>
- [<a href="/<%= date:sub(1,4) -%>" rel="prev">Publications</a>]
- [<a href="../rp/" rel="up">Remonter</a>]
- <% if relprev then %>
- [<a href="<%= relprev.rellink -%>" rel="prev">Précédent</a>]
- <% end %>
- <% if relnext then %>
- [<a href="<%= relnext.rellink -%>" rel="next">Suivant</a>]
- <% end %>
- </p>
- </footer>
-
- <a
- aria-hidden="true"
- class="visuallyhidden"
- href="https://brid.gy/publish/mastodon"></a>
- <a
- aria-hidden="true"
- class="visuallyhidden"
- href="https://fed.brid.gy/"></a>
-
-</article><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>
+ <%- include("footer-entry") %>
</article>
diff --git a/templates/posttypes/repost.html b/templates/posttypes/repost.html
@@ -6,24 +6,6 @@
<%- content -%>
</a>
- <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="/images/hugosoucy/favicon/hs-autoportrait-2010-nb-favion-32x32.png"/>
- </a>
- </p>
- </footer>
+ <%- include("footer-entry") %>
</article>
<!-- https://indieweb.org/repost -->