summaryrefslogtreecommitdiff
path: root/files/index.xml
diff options
context:
space:
mode:
authorMitja Felicijan <m@mitjafelicijan.com>2023-07-08 21:26:40 +0200
committerMitja Felicijan <m@mitjafelicijan.com>2023-07-08 21:26:40 +0200
commitd11b6ebe944b13e504608094424217b5d6b39a53 (patch)
tree64559a80cf1c04fadf62f84f88120cdc5742e751 /files/index.xml
parent8e83285cc5b36c516880c9e321b86cb78db0d27f (diff)
downloadjbmafp-d11b6ebe944b13e504608094424217b5d6b39a53.tar.gz
First version, whatever that means
Diffstat (limited to 'files/index.xml')
-rw-r--r--files/index.xml21
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>