From 0c3a89ee546a2a3215eb32d9786dabeda051812d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Mon, 27 Oct 2025 16:04:14 +0100 Subject: fix(section): bad template for RSS --- backend/templates/rss.xml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'backend/templates/rss.xml') 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 @@ {{ .Title }} - https://{{ .Domain }}/{{ .URI }}/ + {{ $sec := first .Sections }} + {{ $uri := $sec.URI }} + https://{{ .Domain }}/{{ $uri }}/ {{ .PageDescription }} fr-fr {{ $domain := .Domain }} - {{ range .Section.Data }} + {{ range $sec.Data }} {{ .DataTitle }} - https://{{ $domain }}/{{ .URI }}/{{ .Slug }} - https://{{ $domain }}/{{ .URI }}/{{ .Slug }} + https://{{ $domain }}/{{ $uri }}/{{ .Slug }} + https://{{ $domain }}/{{ $uri }}/{{ .Slug }} {{ .Description }} {{ .PubDateRSS }} -- cgit v1.2.3