From 8c1aa52a84cfc2f1cfe19462b5048a7355c5728d Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Tue, 14 Mar 2023 17:30:14 +0100
Subject: Add RSS feed for project releases
---
layouts/project-release/list.html | 2 ++
layouts/project-release/list.xml | 27 +++++++++++++++++++++++++++
2 files changed, 29 insertions(+)
create mode 100644 layouts/project-release/list.xml
diff --git a/layouts/project-release/list.html b/layouts/project-release/list.html
index d288169..b52dd0e 100644
--- a/layouts/project-release/list.html
+++ b/layouts/project-release/list.html
@@ -9,4 +9,6 @@
{{- end }}
+Follow the RSS feed to stay up to date with
+the latest {{ .Parent.Title }} releases.
{{- end }}
diff --git a/layouts/project-release/list.xml b/layouts/project-release/list.xml
new file mode 100644
index 0000000..74cdda2
--- /dev/null
+++ b/layouts/project-release/list.xml
@@ -0,0 +1,27 @@
+{{- printf "" | safeHTML }}
+
+
+ {{ .Title }}
+ {{ .Permalink }}
+ {{ .Title }} Releases
+ Hugo -- gohugo.io{{ with .Site.LanguageCode }}
+ {{.}}{{end}}{{ with .Site.Author.email }}
+ {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }}
+ {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }}
+ {{.}}{{end}}{{ if not .Date.IsZero }}
+ {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }}
+ {{- with .OutputFormats.Get "RSS" -}}
+ {{ printf "" .Permalink .MediaType | safeHTML }}
+ {{- end -}}
+ {{ range .Pages }}
+ -
+ {{ .Title }}
+ {{ .Permalink }}
+ {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}
+ {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}
+ {{ .Permalink }}
+ {{ .Content | html }}
+
+ {{ end }}
+
+
--
cgit v1.1