hscc

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

default.html (1540B)


      1 <article class="h-entry hentry">
      2   <%- content %>
      3 
      4   <% if collection then %>
      5     <hr/>
      6     <aside>
      7       <ol>
      8         <% for _, child in ipairs(collection) do %>
      9           <li>
     10             <a href="<%= child.rellink -%>"><%= child.title -%></a> &mdash;
     11             <time datetime="<%= child.date -%>T<%= child.datetime -%>"><%= child.date -%></time>
     12           </li>
     13         <% end %>
     14       </ol>
     15     </aside>
     16   <% end %>
     17 
     18   <footer class="hentry__footer">
     19     <div>
     20       <a aria-current="page" class="u-url" href="<%- permalink -%>" rel="bookmark">
     21         <span class="visuallyhidden">Permalien</span>
     22         <svg aria-hidden="true" class="ico" height="24" role="image" width="24"><use href="#ico_link"></use></svg>
     23       </a>
     24       Publié le <time class="dt-published" datetime="<%= date -%>T<%= datetime -%>"><%= date -%></time>,
     25       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>.
     26       <% if tonumber(os.date('%Y%m%d%H%M%S', time_modification)) > tonumber(time_created) then %>
     27         Mise à jour <time class="dt-updated"><%= os.date('%Y-%m-%d %H:%M:%S', time_modification) -%></time>.
     28       <% end %>
     29       <% if posse then %>
     30         Voir sur
     31         <% for k, v in pairs(posse) do %>
     32           <a class="u-syndication" href="<%- v -%>" rel="syndication external"><%- k -%></a>,
     33         <% end %>
     34       <% end %>
     35     </div>
     36   </footer>
     37 </article>