hscc

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

article.html (2298B)


      1 <article class="h-entry hentry as-article">
      2   <small class="hentry__posttype">
      3     <svg aria-hidden="true" class="ico" height="24" width="24" role="image"><use href="#ico_article"></use></svg>
      4     Texte
      5   </small>
      6   <h1 class="p-name">
      7     <%- title %>
      8   </h1>
      9 
     10   <div class="p-content e-content">
     11     <%- content %>
     12   </div>
     13 
     14   <% if keywords then %>
     15     <ul aria-label="Liste de mots clés" class="hentry__categories">
     16       <% for i = 1, #keywords do %>
     17         <li>
     18           <a class="p-category" href="/mots-cles.html#<%- keywords[i]:gsub("%s+", "-") -%>" rel="tag"><%- keywords[i] -%></a>
     19         </li>
     20       <% end %>
     21     </ul>
     22   <% end %>
     23 
     24   <footer class="hentry__footer">
     25     <div>
     26       <a class="u-url" href="<%- permalink -%>">#</a>
     27       Publié le <time class="dt-published" datetime="<%= date -%>T<%= datetime -%>"><%= date -%></time>,
     28       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>.
     29       <% if tonumber(os.date('%Y%m%d%H%M%S', time_modification)) > tonumber(time_created) then %>
     30         Mise à jour <time class="dt-updated"><%= os.date('%Y-%m-%d %H:%M:%S', time_modification) -%></time>.
     31       <% end %>
     32       <% if posse then %>
     33         Voir sur
     34         <% for k, v in pairs(posse) do %>
     35           <a class="u-syndication" href="<%- v -%>" rel="syndication external"><%- k -%></a>,
     36         <% end %>
     37       <% end %>
     38     </div>
     39 
     40     <div>
     41       <a class="button" href="/<%= date:sub(1,4) -%>" rel="up">
     42         <svg class="ico" height="24" width="24" role="image"><use href="#ico_chevron_left"></use></svg>
     43         <span><span class="visuallyhidden">Retourner aux </span>publications</span>
     44       </a>
     45       <a class="button" href="/<%= date:sub(1,4) -%>/tx" rel="up">
     46         <svg class="ico" height="24" width="24" role="image"><use href="#ico_chevron_left"></use></svg>
     47         <span><span class="visuallyhidden">Retourner aux </span>textes</span>
     48       </a>
     49     </div>
     50   </footer>
     51 
     52   <a
     53     aria-hidden="true"
     54     class="visuallyhidden"
     55     href="https://brid.gy/publish/mastodon"></a>
     56   <a
     57     aria-hidden="true"
     58     class="visuallyhidden"
     59     href="https://fed.brid.gy/"></a>
     60 </article>