diff options
author | Giuseppe Pignataro <rogepix@gmail.com> | 2019-02-03 14:30:44 +0300 |
---|---|---|
committer | Giuseppe Pignataro <rogepix@gmail.com> | 2019-02-03 14:30:44 +0300 |
commit | a8a6c91421511e3e0c5669ec0ffff0505f61da70 (patch) | |
tree | df5dc0545bf08ed1cd8cb43c44bd76ca24a3fc4d /layouts/index.atom.xml | |
parent | 1b3dc687b8bb7a6bc348f07aca1b64af93aff24b (diff) |
Initial Commit
Diffstat (limited to 'layouts/index.atom.xml')
-rw-r--r-- | layouts/index.atom.xml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/layouts/index.atom.xml b/layouts/index.atom.xml new file mode 100644 index 0000000..9192e0c --- /dev/null +++ b/layouts/index.atom.xml @@ -0,0 +1,27 @@ +<feed xmlns="http://www.w3.org/2005/Atom"> + {{ if .IsHome }} + <title>{{ .Title }}</title> + {{ else }} + <title>{{ .Title }} - {{ .Site.Title }}</title> + {{ end }} + <link href="{{ .Permalink }}index.xml" rel="self"/> + <link href="{{ .Permalink }}"/>{{ if not .Date.IsZero }} + <updated>{{ .Date.Format "02-01-2006T15: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 first 15 (where .Data.Pages "Type" "in" .Site.Params.mainSections) }} + <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>
\ No newline at end of file |