~eddsalkield/edd.salkield.uk

0d9517017017533c1fdbeadbc71bcf6cb0384717 — Edd Salkield 1 year, 3 months ago 99b388e
templates: fix feed generation
1 files changed, 20 insertions(+), 10 deletions(-)

M templates/_default/atom.xml
M templates/_default/atom.xml => templates/_default/atom.xml +20 -10
@@ 1,13 1,23 @@
{{ `<?xml version="1.0" encoding="utf-8"?>` | safeHTML }}
<feed xmlns="http://www.w3.org/2005/Atom">
<id>{{ .URL }}</id>
<title>{{ .Title }}</title>
<updated>{{ site.Generated.Format "2006-01-02T15:04:05Z07:00" }}</updated>
<link href="{{ .URL | safeURL }}" rel="alternate"/>
{{ range .Pages }}<entry>
	<id>{{ .URL }}</id>
	<title>{{ .Title }}</title>
	<updated>{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}</updated>
</entry>
{{ end -}}
  <title>{{ .Title }}</title>
  <icon>/assets/images/avatar.jpg</icon>
  <link rel="self" href="{{ site.Params.url | safeURL }}{{ .URL | safeURL }}/atom.xml" />
  <updated>{{ site.Generated.Format "2006-01-02T15:04:05Z07:00" }}</updated>
  <id>{{ site.Params.url | safeURL }}{{ .URL | safeURL }}</id>
  <author>
    <name>{{ site.Params.author }}</name>
    <email>{{ site.Params.email }}</email>
    <uri>{{ site.Params.url }}</uri>
  </author>
  {{ range .Pages -}}
  <entry>
    <title>{{ .Title }}</title>
    <link rel="alternate" href="{{ site.Params.url | safeURL }}{{ .URL | safeURL }}" />
    <id>{{ site.Params.url | safeURL }}{{ .URL | safeURL }}</id>
    <published>{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}</published>
    <updated>{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}</updated>
    <content type="html">{{ .Content }}</content>
  </entry>
  {{ end -}}
</feed>