diff options
author | Julio Capote <jcapote@gmail.com> | 2018-11-06 20:16:44 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2018-11-06 20:16:44 +0000 |
commit | 0997eafb438738d632a55a112826123e8ccd4043 (patch) | |
tree | e0f5ad3b2bef1ec6fa2f5a877d869ae9e97fba91 /layouts | |
parent | 63262d56bd2f35017f564dbbba971d93d8eaba75 (diff) | |
download | capotej.com-0997eafb438738d632a55a112826123e8ccd4043.tar.gz |
atom feed
Diffstat (limited to '')
-rw-r--r-- | layouts/index.atom.xml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/layouts/index.atom.xml b/layouts/index.atom.xml new file mode 100644 index 0000000..1ef68e1 --- /dev/null +++ b/layouts/index.atom.xml @@ -0,0 +1,23 @@ +<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 }}index.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.Author.name }} + <author> + <name>{{.}}</name>{{ with $.Site.Author.email }} + <email>{{.}}</email>{{end}} + </author>{{end}} + <generator>Hugo -- gohugo.io</generator>{{ range .Data.Pages }} + <entry> + {{ `<title type="html"><![CDATA[` | safeHTML }}{{ .Title }}]]></title> + <link href="{{ .Permalink }}"/> + <id>{{ .Permalink }}</id>{{ with .Site.Params.Author }} + <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> |