blob: a80fc536c0ff842bd926e67eab7f59554bb10004 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ .Site.Title }}</title>
<link href="{{ .Permalink }}feed.xml" rel="self"/>
<link href="{{ .Permalink }}"/>
<id>{{ .Permalink }}</id>
{{ with .Site.Params.Author.name }}
<author>
<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.name }}
<author>
<name>{{.}}</name>
</author>
{{end}}
{{- $fmt := "2006-01-02T15:04:05-07:00" }}
<published>{{ .Date.Format $fmt | safeHTML }}</published>
{{ `<content type="html"><![CDATA[` | safeHTML }}{{ .Content }}]]></content>
</entry>
{{ end }}
</feed>
|