aboutsummaryrefslogtreecommitdiff
path: root/templates/notes.xml
blob: b7217fb0c5c299141c13c2b4217e47989a2fcf88 (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 notes</title>
	  <link>{{ .Config.BaseURL }}</link>
	  <description>{{ .Config.Description }}</description>
	  <language>en-us</language>

	  {{ range $idx, $page := .Pages }}
	  {{ if eq $page.Type "note" }}
	  <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>