diff options
Diffstat (limited to 'files/index.xml')
| -rw-r--r-- | files/index.xml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/files/index.xml b/files/index.xml new file mode 100644 index 0000000..830dd90 --- /dev/null +++ b/files/index.xml @@ -0,0 +1,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> |
