hscc

The personnal website source code of Hugo Soucy. Creates from an homebrewed static website generator.
Log | Files | Refs

commit ac027d1ac5221afe6bb249c73411e0fe797f671d
parent ca87ec6acef538453f16a37e295db52073f7e419
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Fri, 13 Nov 2020 20:14:24 -0500

Fix a bug in the atom feed template

Diffstat:
Mtemplates/feed.xml.html | 25++++++++++++-------------
1 file changed, 12 insertions(+), 13 deletions(-)

diff --git a/templates/feed.xml.html b/templates/feed.xml.html @@ -1,7 +1,8 @@ -<feed xmlns="http://www.w3.org/2005/Atom"> +<?xml version="1.0" encoding="utf-8"?> +<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr"> <title><%- title -%></title> <% if description then %> - <subtitle><%- description -%></subtitle> + <subtitle><%- description -%></subtitle> <% end %> <id><%- id -%></id> <link href="<%- dirlink -%>index.xml" rel="self" type="application/atom+xml" /> @@ -15,17 +16,15 @@ </author> <% for i, child in ipairs(children) do %> - <entry> - <title><%- child.title -%></title> - <id><%- child.id -%></id> - <link href="<%= child.permalink -%>" hreflang="<%= child.language -%>" rel="alternate" type="text/html" /> - <published><%= child.date -%>T<%= child.datetime -%>Z</published> - <updated><%- os.date('%Y-%m-%dT%H:%M:%S', child.time_modification) -%>Z</updated> - <content type="xhtml"> - <div xmlns="http://www.w3.org/1999/xhtml"> + <entry> + <title><%- child.title -%></title> + <id><%- child.id -%></id> + <link href="<%= child.permalink -%>" hreflang="<%= child.language -%>" rel="alternate" type="text/html" /> + <published><%= child.date -%>T<%= child.datetime -%>Z</published> + <updated><%- os.date('%Y-%m-%dT%H:%M:%S', child.time_modification) -%>Z</updated> + <content type="html"> <%= child.content -%> - </div> - </content> - </entry> + </content> + </entry> <% end %> </feed>