From f1e008670cd865520eb5f21fe6e7b56f02076a23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Mon, 27 Oct 2025 13:32:39 +0100 Subject: feat(config): supports multiple sections --- backend/templates/rss.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'backend/templates/rss.xml') 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 @@ {{ .Title }} - https://{{ .Domain }}/logs/ + https://{{ .Domain }}/{{ .URI }}/ {{ .PageDescription }} fr-fr {{ $domain := .Domain }} - {{ range .Logs }} + {{ range .Section.Data }} - {{ .LogTitle }} - https://{{ $domain }}/logs/{{ .Slug }} - https://{{ $domain }}/logs/{{ .Slug }} + {{ .DataTitle }} + https://{{ $domain }}/{{ .URI }}/{{ .Slug }} + https://{{ $domain }}/{{ .URI }}/{{ .Slug }} {{ .Description }} {{ .PubDateRSS }} {{ end }} - \ No newline at end of file + -- cgit v1.2.3 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 From 3ce41d99d688410a361d83767b50b64a35b569d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Mon, 27 Oct 2025 17:21:41 +0100 Subject: feat(sections): general rss feed --- backend/templates/rss.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'backend/templates/rss.xml') diff --git a/backend/templates/rss.xml b/backend/templates/rss.xml index 2abca8e..039a2f7 100644 --- a/backend/templates/rss.xml +++ b/backend/templates/rss.xml @@ -4,16 +4,16 @@ {{ .Title }} {{ $sec := first .Sections }} - {{ $uri := $sec.URI }} - https://{{ .Domain }}/{{ $uri }}/ + {{ $uri := uri $sec.URI }} + https://{{ .Domain }}/{{ $uri }} {{ .PageDescription }} - fr-fr + {{ .Language }} {{ $domain := .Domain }} {{ 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