1
0
Fork 0
mirror of https://git.sr.ht/~adnano/kiln synced 2024-05-07 01:26:20 +02:00
kiln/templates/_default/atom.xml
Adnan Maolood 90aa756156 templates/_default/atom.xml: Add required links
Entries must contain a alternate link if there is no content element.
2022-09-24 11:09:04 -04:00

15 lines
500 B
XML

{{ `<?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>
<link href="{{ .URL | safeURL }}" rel="alternate"/>
</entry>
{{ end -}}
</feed>