hscc

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

note.html (3332B)


      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 class="u-url" href="<%- permalink -%>">#</a>
     42       Publié le <time class="dt-published" datetime="<%= date -%>T<%= datetime -%>"><%= date -%></time>,
     43       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>.
     44       <% if tonumber(os.date('%Y%m%d%H%M%S', time_modification)) > tonumber(time_created) then %>
     45         Mise à jour <time class="dt-updated"><%= os.date('%Y-%m-%d %H:%M:%S', time_modification) -%></time>.
     46       <% end %>
     47       <% if posse then %>
     48         Voir sur
     49         <% for k, v in pairs(posse) do %>
     50           <a class="u-syndication" href="<%- v -%>" rel="syndication external"><%- k -%></a>,
     51         <% end %>
     52       <% end %>
     53     </div>
     54 
     55     <% if tonumber(time_created) > 20201101000000 then %>
     56       <div>
     57         <a class="button" href="/<%= date:sub(1,4) -%>" rel="up">
     58           <svg class="ico" height="24" width="24" role="image"><use href="#ico_chevron_left"></use></svg>
     59           <span><span class="visuallyhidden">Retourner aux </span>publications</span>
     60         </a>
     61         <a class="button" href="/<%= date:sub(1,4) -%>/nt" rel="up">
     62           <svg class="ico" height="24" width="24" role="image"><use href="#ico_chevron_left"></use></svg>
     63           <span><span class="visuallyhidden">Retourner aux </span>notes</span>
     64         </a>
     65       </div>
     66     <% end %>
     67   </footer>
     68 
     69   <a
     70     aria-hidden="true"
     71     class="visuallyhidden"
     72     href="https://brid.gy/publish/mastodon"></a>
     73   <a
     74     aria-hidden="true"
     75     class="visuallyhidden"
     76     href="https://fed.brid.gy/"></a>
     77 
     78   <aside class="webmention-herokuapp">
     79     <script id="webmention-hosted">
     80       (function () {
     81         var sn = document.createElement("script"), s = document.getElementsByTagName("script")[0], url;
     82         url = document.querySelectorAll ? document.querySelectorAll("link[rel~=canonical]") : false;
     83         url = url && url[0] ? url[0].href : false;
     84         sn.type = "text/javascript"; sn.async = true;
     85         sn.src = "//webmention.herokuapp.com/api/embed?url=" + encodeURIComponent(url || window.location);
     86         s.parentNode.insertBefore(sn, s);
     87       }());
     88     </script>
     89   </aside>
     90 </article>