aboutsummaryrefslogtreecommitdiff
path: root/themes/simple/layouts/section/notes.xml
blob: 889cf089e33a080f6ffda006eeb829d53b80a069 (plain)
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
<rss version="2.0" 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">

  <channel>

    <title>{{ .Site.Author.name }}'s Notes</title>
    <link>{{ .Permalink }}</link>
    <description>{{ .Site.Params.description }}</description>
    <language>en-us</language>

    {{ range (where .Site.RegularPages "Section" "notes") }}
    <item>

      <title>{{ .Title }}</title>
      <link>{{ .Permalink }}</link>
      <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
      {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
      <guid>{{ .Permalink }}</guid>

      <description>{{ "<![CDATA[" | safeHTML }} {{ .Summary }}]]></description>
      <content:encoded>{{ "<![CDATA[" | safeHTML }} {{ .Content }}]]></content:encoded>

    </item>
    {{end}}

  </channel>

</rss>