diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-03-10 14:59:14 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-03-10 14:59:14 +0100 |
| commit | 1100562e29f6476448b656dbddd4cf22505523f6 (patch) | |
| tree | 442eec492199104bd49dfd74474ce89ade8fcac9 /templates/feed.xml | |
| parent | a40d80be378e46a6c490e1b99b0d8f4acd968503 (diff) | |
| download | mitjafelicijan.com-1100562e29f6476448b656dbddd4cf22505523f6.tar.gz | |
Move back to JBMAFP
Diffstat (limited to 'templates/feed.xml')
| -rwxr-xr-x | templates/feed.xml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/feed.xml b/templates/feed.xml new file mode 100755 index 0000000..97507e2 --- /dev/null +++ b/templates/feed.xml | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | <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"> | ||
| 2 | <channel> | ||
| 3 | <title>{{ .Config.Title }}'s posts</title> | ||
| 4 | <link>{{ .Config.BaseURL }}</link> | ||
| 5 | <description>{{ .Config.Description }}</description> | ||
| 6 | <language>{{ .Config.Language }}</language> | ||
| 7 | |||
| 8 | {{ range $idx, $page := .Pages }} | ||
| 9 | {{ if or (eq $page.Type "post") (eq $page.Type "note") }} | ||
| 10 | {{ if not .Draft }} | ||
| 11 | <item> | ||
| 12 | <title>{{ $page.Title }}</title> | ||
| 13 | <link>{{ $.Config.BaseURL }}{{ $page.RelPermalink }}</link> | ||
| 14 | <pubDate>{{ $page.Created.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</pubDate> | ||
| 15 | <guid>{{ $.Config.BaseURL }}{{ $page.RelPermalink }}</guid> | ||
| 16 | <description>{{ $page.Summary }}</description> | ||
| 17 | <content:encoded>{{ $page.Raw }}</content:encoded> | ||
| 18 | </item> | ||
| 19 | {{ end }} | ||
| 20 | {{ end }} | ||
| 21 | {{ end }} | ||
| 22 | </channel> | ||
| 23 | </rss> | ||
