From 129992cd87805269eb9af095451b8370c18d64f3 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Fri, 12 Apr 2024 21:05:56 -0400 Subject: [PATCH] create section-specific RSS feeds --- layouts/_default/index.xml | 30 ++++++++++++++++++++++++++++++ layouts/{_default => }/rss.xml | 0 2 files changed, 30 insertions(+) create mode 100644 layouts/_default/index.xml rename layouts/{_default => }/rss.xml (100%) diff --git a/layouts/_default/index.xml b/layouts/_default/index.xml new file mode 100644 index 0000000..472b9a0 --- /dev/null +++ b/layouts/_default/index.xml @@ -0,0 +1,30 @@ + + + {{.Title}} + {{ .Permalink }} + {{.Params.description}} + Hugo -- gohugo.io{{ with .Site.LanguageCode }} + {{.}}{{end}}{{ if .Site.Data.details.profilephoto}} + + {{.Site.Data.details.name}} + {{.Site.BaseURL}} + {{.Site.BaseURL}}{{.Site.Data.details.profilephoto}} + {{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 }}{{ if .Params.gif}} + + {{end}}{{ if .Params.video}} + + {{end}}{{ if .Params.audio}} + + {{end}}{{ if .Params.image}} + {{.Params.image}}{{end}} + {{- .Content | html -}} + {{ end }} + + diff --git a/layouts/_default/rss.xml b/layouts/rss.xml similarity index 100% rename from layouts/_default/rss.xml rename to layouts/rss.xml