aboutsummaryrefslogtreecommitdiff
path: root/files/index.xml
blob: 830dd908834fc3f0d1fcdc3e39624f04de71ab5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
	<title>{{ .Config.Title }}'s posts</title>
	<link>{{ .Config.BaseURL }}</link>
	<description>{{ .Config.Description }}</description>
	<language>{{ .Config.Language }}</language>

	{{ range $idx, $page := .Pages }}
	{{ if eq $page.Type "post" }}
	<item>
	  <title>{{ $page.Title }}</title>
	  <link>{{ $.Config.BaseURL }}/{{ $page.RelPermalink }}</link>
	  <pubDate>{{ $page.Created.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</pubDate>
	  <guid>{{ $.Config.BaseURL }}/{{ $page.RelPermalink }}</guid>
	  <description>{{ $page.Summary }}</description>
	  <content:encoded>{{ $page.Raw }}</content:encoded>
	</item>
	{{ end }}
	{{ end }}
  </channel>
</rss>