This repository has been archived on 2021-09-01. You can view files and clone it, but cannot push or open issues or pull requests.
theme-geeklab/layouts/_default/list.atom.xml

32 lines
1.3 KiB
XML

<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
<link href="{{ .Permalink }}feed.atom.xml" rel="self"/>
<link href="{{ .Permalink }}"/>{{ if not .Date.IsZero }}
<updated>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>{{ end }}
<id>{{ .Permalink }}</id>
{{ with .Site.Params.author }}
{{ $author := index $.Site.Data.authors . }}
<author>
<name>{{ $author.name }}</name>
<email>{{ $author.email }}</email>
</author>
{{end}}
<generator>Hugo -- gohugo.io</generator>
{{ range where .Pages "Type" "post" }}
<entry>
{{ `<title type="html"><![CDATA[` | safeHTML }}{{ .Title }}]]></title>
<link href="{{ .Permalink }}"/>
<id>{{ .Permalink }}</id>
{{ with .Params.Author }}
{{ $author := index $.Site.Data.authors . }}
<author>
<name>{{ $author.name }}</name>
</author>
{{end}}
<published>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</published>
<updated>{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
{{ `<content type="html"><![CDATA[` | safeHTML }}{{ .Content }}]]></content>
</entry>
{{ end }}
</feed>