diff options
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/index.atom.xml | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/layouts/index.atom.xml b/layouts/index.atom.xml index 1d73f9b..a80fc53 100644 --- a/layouts/index.atom.xml +++ b/layouts/index.atom.xml @@ -2,20 +2,28 @@ <title>{{ .Site.Title }}</title> <link href="{{ .Permalink }}feed.xml" rel="self"/> <link href="{{ .Permalink }}"/> - <id>{{ .Permalink }}</id>{{ with .Site.Author.name }} + <id>{{ .Permalink }}</id> + + {{ with .Site.Params.Author.name }} <author> - <name>{{.}}</name>{{ with $.Site.Author.email }} - <email>{{.}}</email>{{end}} - </author>{{end}} + <name>{{.}}</name> + {{ with $.Site.Params.Author.email }} + <email>{{.}}</email> + {{end}} + </author> + {{end}} + <generator>Hugo -- gohugo.io</generator> {{ range where (first 10 (where .Site.Pages "Section" "blog")) "Params.hidden" "ne" "true" }} <entry> {{ `<title type="html"><![CDATA[` | safeHTML }}{{ .Title }}]]></title> <link href="{{ .Permalink }}"/> - <id>{{ .Permalink }}</id>{{ with .Site.Params.Author }} + <id>{{ .Permalink }}</id> + {{ with .Site.Params.Author.name }} <author> <name>{{.}}</name> - </author>{{end}} + </author> + {{end}} {{- $fmt := "2006-01-02T15:04:05-07:00" }} <published>{{ .Date.Format $fmt | safeHTML }}</published> {{ `<content type="html"><![CDATA[` | safeHTML }}{{ .Content }}]]></content> |
