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.xml10
1 files changed, 6 insertions, 4 deletions
diff --git a/backend/templates/rss.xml b/backend/templates/rss.xml
index 6d99272..2abca8e 100644
--- a/backend/templates/rss.xml
+++ b/backend/templates/rss.xml
@@ -3,15 +3,17 @@
<channel>
<atom:link href="https://{{ .Domain }}{{ .URL }}" rel="self" type="application/rss+xml" />
<title>{{ .Title }}</title>
- <link>https://{{ .Domain }}/{{ .URI }}/</link>
+ {{ $sec := first .Sections }}
+ {{ $uri := $sec.URI }}
+ <link>https://{{ .Domain }}/{{ $uri }}/</link>
<description>{{ .PageDescription }}</description>
<language>fr-fr</language>
{{ $domain := .Domain }}
- {{ range .Section.Data }}
+ {{ range $sec.Data }}
<item>
<title>{{ .DataTitle }}</title>
- <link>https://{{ $domain }}/{{ .URI }}/{{ .Slug }}</link>
- <guid>https://{{ $domain }}/{{ .URI }}/{{ .Slug }}</guid>
+ <link>https://{{ $domain }}/{{ $uri }}/{{ .Slug }}</link>
+ <guid>https://{{ $domain }}/{{ $uri }}/{{ .Slug }}</guid>
<description>{{ .Description }}</description>
<pubDate>{{ .PubDateRSS }}</pubDate>
</item>