aboutsummaryrefslogtreecommitdiff
path: root/backend/templates/rss.xml
diff options
context:
space:
mode:
Diffstat (limited to 'backend/templates/rss.xml')
-rw-r--r--backend/templates/rss.xml20
1 files changed, 20 insertions, 0 deletions
diff --git a/backend/templates/rss.xml b/backend/templates/rss.xml
new file mode 100644
index 0000000..c8390da
--- /dev/null
+++ b/backend/templates/rss.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+ <channel>
+ <atom:link href="https://{{ .Domain }}{{ .URL }}" rel="self" type="application/rss+xml" />
+ <title>{{ .Title }}</title>
+ <link>https://{{ .Domain }}/logs/</link>
+ <description>{{ .PageDescription }}</description>
+ <language>fr-fr</language>
+ {{ $domain := .Domain }}
+ {{ range .Logs }}
+ <item>
+ <title>{{ .LogTitle }}</title>
+ <link>https://{{ $domain }}/logs/{{ .Slug }}</link>
+ <guid>https://{{ $domain }}/logs/{{ .Slug }}</guid>
+ <description>{{ .Description }}</description>
+ <pubDate>{{ .PubDateRSS }}</pubDate>
+ </item>
+ {{ end }}
+ </channel>
+</rss> \ No newline at end of file