diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-06 20:32:20 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-06 20:32:20 +0200 |
| commit | bde341ccfa74ad702745e84ee91c2e7045cbe307 (patch) | |
| tree | 3d914112e7153c8fd7bc1d6a459d143f8ccab8f3 /backend/templates/rss.xml | |
| parent | 9cfcbabb032c729b06d581412a64a9e7cefed6b1 (diff) | |
feat(backend): rss feeds for logs
Diffstat (limited to 'backend/templates/rss.xml')
| -rw-r--r-- | backend/templates/rss.xml | 20 |
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 |
