rss.xml (1046B)
1 <feed xmlns="http://www.w3.org/2005/Atom">
2 <title>{{ if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>
3 <link href="{{ .Permalink }}"/>
4 <link href="{{ .Permalink }}index.xml" rel="self"/>
5 <updated>{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" }}</updated>
6 <author><name>{{ .Site.Author.name }}</name></author>
7 <id>{{ .Permalink }}</id>
8 {{ $pages := (first 20 .Data.Pages) }}
9 {{ if .IsHome }}
10 {{ $pages = (first 20 (where .Site.RegularPages "Section" "!=" "")) }}
11 {{ end }}
12 {{ range $pages }}
13 <entry>
14 <id>{{ .Permalink }}</id>
15 {{ `<title type="html"><![CDATA[` | safeHTML -}}
16 {{- if .Title }}{{ .Title }}{{ else -}}
17 {{- truncate .Site.Params.summaryLength "…" (plainify .Content) }}{{ end -}}
18 {{- `]]></title>` | safeHTML -}}
19 <updated>{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" }}</updated>
20 {{ `<content type="html"><![CDATA[` | safeHTML }}{{ .Content }}{{ partial "hyperskip_feed.html" . }}]]></content>
21 <link href="{{ .Permalink }}"/>
22 </entry>
23 {{ end }}
24 </feed>