commit 128f1781849e031b5611eeb2756feb9b84def285
parent 4a8011b3bf5d90810a745b6ab983eaebeb36f295
Author: Hugo Soucy <hugo@soucy.cc>
Date: Tue, 8 Feb 2022 19:53:28 -0500
Modify templates
Diffstat:
8 files changed, 37 insertions(+), 24 deletions(-)
diff --git a/templates/default.html b/templates/default.html
@@ -14,7 +14,10 @@
<footer class="hentry__footer">
<div>
- <a class="u-url" href="<%- permalink -%>">#</a>
+ <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 %>
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:/satelito.html">Satelito</a>, un générateur de site statique écrit en lua. |
+ <a href="https://1mb.club/" rel="external">qui ne drainera pas votre batterie</a> est propulsé par <a href="/satelito.html">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/layout.html b/templates/layout.html
@@ -10,6 +10,7 @@
<symbol id="ico_chevron_left" width="24" height="24" fill="none"><path d="M16 5v2h-2V5h2zm-4 4V7h2v2h-2zm-2 2V9h2v2h-2zm0 2H8v-2h2v2zm2 2v-2h-2v2h2zm0 0h2v2h-2v-2zm4 4v-2h-2v2h2z" fill="currentColor"/></symbol>
<symbol id="ico_corner_down_left" width="24" height="24" fill="none"><path d="M18 16H8v2H6v-2H4v-2h2v-2h2v2h10V4h2v12h-2zM8 12v-2h2v2H8zm0 6v2h2v-2H8z" fill="currentColor"/></symbol>
<symbol id="ico_article" fill="none" height="24" width="24"><path d="M5 3H3v18h18V3H5zm14 2v14H5V5h14zm-2 2H7v2h10V7zM7 11h10v2H7v-2zm7 4H7v2h7v-2z" fill="currentColor"/></symbol>
+ <symbol id="ico_link" fill="none" height="24" width="24"><path d="M4 6h7v2H4v8h7v2H2V6h2zm16 0h-7v2h7v8h-7v2h9V6h-2zm-3 5H7v2h10v-2z" fill="currentColor"/></symbol>
</svg>
<header class="header-banner" role="banner">
<div>
@@ -19,13 +20,14 @@
<img alt="hs0ucy" src="/hs0ucy.png" height="40" width="126" />
</picture>
</a>
- <a class="go-to-nav" href="#n" id="t">
+ <a class="go-to-nav" href="#n">
<svg aria-hidden="true" class="ico" height="24" role="image" width="24"><use href="#ico_nav"></use></svg>
<span class="visuallyhidden">Aller au </span>menu<span class="visuallyhidden"> de navigation</span>
</a>
</div>
</header>
+ <% tessssst(rellink, permalink) %>
<main class="main" id="m">
<%- post %>
</main>
diff --git a/templates/posttypes/article.html b/templates/posttypes/article.html
@@ -23,7 +23,10 @@
<footer class="hentry__footer">
<div>
- <a class="u-url" href="<%- permalink -%>">#</a>
+ <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 %>
diff --git a/templates/posttypes/bookmark.html b/templates/posttypes/bookmark.html
@@ -29,7 +29,10 @@
<footer class="hentry__footer">
<div>
- <a class="u-url" href="<%- permalink -%>">#</a>
+ <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 %>
diff --git a/templates/posttypes/note.html b/templates/posttypes/note.html
@@ -38,7 +38,10 @@
<footer class="hentry__footer">
<div>
- <a class="u-url" href="<%- permalink -%>">#</a>
+ <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 %>
diff --git a/templates/publications.html b/templates/publications.html
@@ -30,12 +30,7 @@
Marque-page
</small>
<h2 class="p-name">
- <a
- class="u-bookmark-of h-cite"
- href="<%= children[i].url %>"
- rel="external">
- <%- children[i].title -%>
- </a>
+ <a class="u-url" href="<%= children[i].rellink -%>" rel="bookmark"><%= children[i].title -%></a>
</h2>
<% elseif children[i].posttype == 'note' then %>
<small class="hentry__posttype">
@@ -56,7 +51,9 @@
Texte
</small>
- <h2 class="p-name"><%= children[i].title -%></h2>
+ <h2 class="p-name">
+ <a class="u-url" href="<%= children[i].rellink -%>" rel="bookmark"><%= children[i].title -%></a>
+ </h2>
<% if children[i].summary then %>
<p class="p-content"><%- children[i].summary -%></p>
@@ -72,18 +69,14 @@
<% end %>
<footer class="hentry__footer">
- <% if children[i].keywords and children[i].posttype == 'bookmark' then %>
- <ul class="hentry__categories">
- <% for j = 1, #children[i].keywords do %>
- <li>
- <em class="p-category"><%- children[i].keywords[j] -%></em>
- </li>
- <% end %>
- </ul>
- <% end %>
<div>
- Publié le <a class="u-url" href="<%= children[i].rellink -%>">
- <time class="dt-published" datetime="<%= children[i].date -%>T<%= children[i].datetime -%>"><%= children[i].date -%></time></a>.
+ <% if children[i].posttype == 'article'
+ or children[i].posttype == 'bookmark' then %>
+ Publié le <time class="dt-published" datetime="<%= children[i].date -%>T<%= children[i].datetime -%>"><%= children[i].date -%></time>.
+ <% else %>
+ Publié le <a class="u-url" href="<%= children[i].rellink -%>" rel="bookmark">
+ <time class="dt-published" datetime="<%= children[i].date -%>T<%= children[i].datetime -%>"><%= children[i].date -%></time></a>.
+ <% end %>
<span class="visuallyhidden">Par <em class="p-author author h-card"><%= children[i].author.name -%></em>.</span>
</div>
</footer>
diff --git a/templates/sitemap.xml.html b/templates/sitemap.xml.html
@@ -5,6 +5,12 @@
<url>
<loc><%= sitemap[i].permalink -%></loc>
<lastmod><%- os.date('%Y-%m-%dT%H:%M:%S', sitemap[i].time_modification) -%>Z</lastmod>
+ <% if sitemap[i].changefreq then %>
+ <changefreq><%= sitemap[i].changefreq -%></changefreq>
+ <% end %>
+ <% if sitemap[i].priority then %>
+ <priority><%= sitemap[i].priority -%></priority>
+ <% end %>
</url>
<% end %>
<% end %>