hscc

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

note.html (3358B)


      1 <article class="h-entry hentry as-note">
      2   <small class="hentry__posttype">
      3     <svg aria-hidden="true" class="ico" height="24" width="24" role="image"><use href="#ico_note"></use></svg>
      4     Note
      5   </small>
      6   <h1 class="visuallyhidden">
      7     <%= title -%>
      8   </h1>
      9 
     10   <% if citeurl then %>
     11     <blockquote class="p-name e-content">
     12       <div>
     13         <%- content -%>
     14       </div>
     15       <% if cite then %>
     16         <footer>
     17           <cite class="h-cite">
     18             <a class="u-url p-author" href="<%- citeurl -%>" rel="external"><%- cite -%></a>
     19           </cite>
     20         </footer>
     21       <% end %>
     22     </blockquote>
     23   <% else %>
     24     <div class="p-name e-content">
     25       <%- content -%>
     26     </div>
     27   <% end %>
     28 
     29   <% if keywords then %>
     30     <ul class="hentry__categories">
     31       <% for i = 1, #keywords do %>
     32         <li>
     33           <a class="p-category" href="/mots-cles.html#<%- keywords[i]:gsub("%s+", "-") -%>" rel="tag"><%- keywords[i] -%></a>
     34         </li>
     35       <% end %>
     36     </ul>
     37   <% end %>
     38 
     39   <footer class="hentry__footer">
     40     <div>
     41       <a aria-current="page" class="u-url" href="<%- permalink -%>" rel="bookmark">
     42         <span class="visuallyhidden">Permalien</span>
     43         <svg aria-hidden="true" class="ico" height="24" role="image" width="24"><use href="#ico_link"></use></svg>
     44       </a>
     45       Publié le <time class="dt-published" datetime="<%= date -%>T<%= datetime -%>"><%= date -%></time>,
     46       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>.
     47       <% if tonumber(os.date('%Y%m%d%H%M%S', time_modification)) > tonumber(time_created) then %>
     48         Mise à jour <time class="dt-updated"><%= os.date('%Y-%m-%d %H:%M:%S', time_modification) -%></time>.
     49       <% end %>
     50       <% if posse then %>
     51         Voir sur
     52         <% for k, v in pairs(posse) do %>
     53           <a class="u-syndication" href="<%- v -%>" rel="syndication external"><%- k -%></a>,
     54         <% end %>
     55       <% end %>
     56     </div>
     57 
     58     <% if tonumber(time_created) > 20201101000000 then %>
     59       <p>
     60         [<a href="/<%= date:sub(1,4) -%>" rel="prev">Publications</a>]
     61         [<a href="../nt/" rel="up">Remonter</a>]
     62         <% if relprev then %>
     63           [<a href="<%= relprev.rellink -%>" rel="prev">Précédent</a>]
     64         <% end %>
     65         <% if relnext then %>
     66           [<a href="<%= relnext.rellink -%>" rel="next">Suivant</a>]
     67         <% end %>
     68       </p>
     69     <% end %>
     70   </footer>
     71 
     72   <a
     73     aria-hidden="true"
     74     class="visuallyhidden"
     75     href="https://brid.gy/publish/mastodon"></a>
     76   <a
     77     aria-hidden="true"
     78     class="visuallyhidden"
     79     href="https://fed.brid.gy/"></a>
     80 
     81   <aside class="webmention-herokuapp">
     82     <script id="webmention-hosted">
     83       (function () {
     84         var sn = document.createElement("script"), s = document.getElementsByTagName("script")[0], url;
     85         url = document.querySelectorAll ? document.querySelectorAll("link[rel~=canonical]") : false;
     86         url = url && url[0] ? url[0].href : false;
     87         sn.type = "text/javascript"; sn.async = true;
     88         sn.src = "//webmention.herokuapp.com/api/embed?url=" + encodeURIComponent(url || window.location);
     89         s.parentNode.insertBefore(sn, s);
     90       }());
     91     </script>
     92   </aside>
     93 </article>