aboutsummaryrefslogtreecommitdiff
path: root/templates/feed.xml
blob: 97106d97376412b686a0f9531e6f19ef6ebbf567 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<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 or (eq $page.Type "post") (eq $page.Type "note") }}
      {{ if not .Draft }}
      	<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 }}
	{{ end }}
  </channel>
</rss>