1
0
mirror of https://git.sr.ht/~adnano/kiln synced 2024-12-04 19:08:22 +01:00

Update default atom.xml template

This commit is contained in:
adnano 2021-05-10 01:08:39 -04:00
parent 8064684827
commit bfc758430b

@ -1,16 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
{{ `<?xml version="1.0" encoding="utf-8"?>` | safeHTML }}
<feed xmlns="http://www.w3.org/2005/Atom">
<id>{{ index site.URLs 0 }}{{ .Path }}</id>
<title>{{ .Title }}</title>
<updated>{{ .Updated.Format "2006-01-02T15:04:05Z07:00" }}</updated>
<link href="{{ index site.URLs 0 }}{{ .Path }}" rel="alternate"/>
<link href="{{ index site.URLs 0 | safeURL }}{{ .Path }}" rel="alternate"/>
{{ range .Entries }}<entry>
<id>{{ index site.URLs 0 }}{{ .Path }}</id>
<title>{{ .Title }}</title>
<updated>{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}</updated>
{{- $path := .Path }}
{{- range site.URLs }}
<link href="{{ . }}{{ $path }}" rel="alternate"/>
<link href="{{ . | safeURL }}{{ $path }}" rel="alternate"/>
{{- end }}
</entry>
{{ end -}}