aboutsummaryrefslogtreecommitdiff
path: root/backend/templates/rss.xml
diff options
context:
space:
mode:
authorWilliam Hergès <william@herges.fr>2025-10-27 13:32:39 +0100
committerWilliam Hergès <william@herges.fr>2025-10-27 13:32:39 +0100
commitf1e008670cd865520eb5f21fe6e7b56f02076a23 (patch)
tree33f099bced477c3e84fa60b20136354535d0c18c /backend/templates/rss.xml
parent7bd309f3ca44930c5207b94acc2d425b24d4b369 (diff)
feat(config): supports multiple sections
Diffstat (limited to 'backend/templates/rss.xml')
-rw-r--r--backend/templates/rss.xml12
1 files changed, 6 insertions, 6 deletions
diff --git a/backend/templates/rss.xml b/backend/templates/rss.xml
index c8390da..6d99272 100644
--- a/backend/templates/rss.xml
+++ b/backend/templates/rss.xml
@@ -3,18 +3,18 @@
<channel>
<atom:link href="https://{{ .Domain }}{{ .URL }}" rel="self" type="application/rss+xml" />
<title>{{ .Title }}</title>
- <link>https://{{ .Domain }}/logs/</link>
+ <link>https://{{ .Domain }}/{{ .URI }}/</link>
<description>{{ .PageDescription }}</description>
<language>fr-fr</language>
{{ $domain := .Domain }}
- {{ range .Logs }}
+ {{ range .Section.Data }}
<item>
- <title>{{ .LogTitle }}</title>
- <link>https://{{ $domain }}/logs/{{ .Slug }}</link>
- <guid>https://{{ $domain }}/logs/{{ .Slug }}</guid>
+ <title>{{ .DataTitle }}</title>
+ <link>https://{{ $domain }}/{{ .URI }}/{{ .Slug }}</link>
+ <guid>https://{{ $domain }}/{{ .URI }}/{{ .Slug }}</guid>
<description>{{ .Description }}</description>
<pubDate>{{ .PubDateRSS }}</pubDate>
</item>
{{ end }}
</channel>
-</rss> \ No newline at end of file
+</rss>