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.xml16
1 files changed, 9 insertions, 7 deletions
diff --git a/backend/templates/rss.xml b/backend/templates/rss.xml
index c8390da..039a2f7 100644
--- a/backend/templates/rss.xml
+++ b/backend/templates/rss.xml
@@ -3,18 +3,20 @@
<channel>
<atom:link href="https://{{ .Domain }}{{ .URL }}" rel="self" type="application/rss+xml" />
<title>{{ .Title }}</title>
- <link>https://{{ .Domain }}/logs/</link>
+ {{ $sec := first .Sections }}
+ {{ $uri := uri $sec.URI }}
+ <link>https://{{ .Domain }}/{{ $uri }}</link>
<description>{{ .PageDescription }}</description>
- <language>fr-fr</language>
+ <language>{{ .Language }}</language>
{{ $domain := .Domain }}
- {{ range .Logs }}
+ {{ range $sec.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>