hscc

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

feed.xml.html (1383B)


      1 <?xml version="1.0" encoding="utf-8"?>
      2 <feed xmlns="http://www.w3.org/2005/Atom" xml:lang="<%- language -%>">
      3 	<title><%- siteurl:match('^%w+://([^/]+)') -%> ~ <%- title -%></title>
      4   <% if description then %>
      5 	  <subtitle><%- description -%></subtitle>
      6   <% end %>
      7   <id><%- id -%></id>
      8 	<link href="<%- dirlink -%>index.xml" rel="self" type="application/atom+xml" />
      9 	<link href="<%= permalink -%>" rel="alternate" />
     10   <link href="https://creativecommons.org/licenses/by/2.5/ca/deed.fr" rel="license" />
     11 	<updated><%- os.date('%Y-%m-%dT%H:%M:%S', time_modified_child) -%>Z</updated>
     12   <author>
     13   	<name><%- author.name -%></name>
     14   	<email><%- author.email -%></email>
     15   	<uri><%- author.uri -%></uri>
     16   </author>
     17 
     18   <!-- ATOM entries should be sort by the updated field -->
     19   <% if children then %>
     20     <% for i = 1, #children do %>
     21       <entry>
     22         <title><%- children[i].title -%></title>
     23         <id><%- children[i].id -%></id>
     24         <link href="<%= children[i].permalink -%>" hreflang="<%= children[i].language -%>" rel="alternate" type="text/html" />
     25         <published><%= children[i].date -%>T<%= children[i].datetime -%>Z</published>
     26         <updated><%- os.date('%Y-%m-%dT%H:%M:%S', children[i].time_modification) -%>Z</updated>
     27         <content type="html">
     28           <%= children[i].content -%>
     29         </content>
     30       </entry>
     31 	  <% end %>
     32 	<% end %>
     33 </feed>