From ad43b61b56983fc6599acce36273bd32956ee5c5 Mon Sep 17 00:00:00 2001 From: Dominic Reich Date: Sat, 29 Jul 2023 18:13:19 +0200 Subject: [PATCH] =?UTF-8?q?add=20feed=20to=20spam=20=E2=80=9Ccategory?= =?UTF-8?q?=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../index.md | 2 +- layouts/spam/section.atom.xml | 39 +++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 layouts/spam/section.atom.xml diff --git a/content/spam/2023-07-29-regionaldirektion-fuer-zoelle-und-indirekte-steuern/index.md b/content/spam/2023-07-29-regionaldirektion-fuer-zoelle-und-indirekte-steuern/index.md index 03d7509..c99013b 100644 --- a/content/spam/2023-07-29-regionaldirektion-fuer-zoelle-und-indirekte-steuern/index.md +++ b/content/spam/2023-07-29-regionaldirektion-fuer-zoelle-und-indirekte-steuern/index.md @@ -13,7 +13,7 @@ date = '2023-07-29T17:01:28+02:00' # showWordCount = false # showPagination = false -feed_exclude = true +#feed_exclude = true #site_exclude = true +++ diff --git a/layouts/spam/section.atom.xml b/layouts/spam/section.atom.xml new file mode 100644 index 0000000..3191e04 --- /dev/null +++ b/layouts/spam/section.atom.xml @@ -0,0 +1,39 @@ +{{- $pctx := . -}} +{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} +{{- $pages := $pctx.RegularPages -}} +{{- $limit := .Site.Config.Services.RSS.Limit -}} +{{- if ge $limit 1 -}} +{{- $pages = $pages | first $limit -}} +{{- end -}} +{{- printf "" | safeHTML }} + + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} + + {{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }} + + Dominic Reich “OE7DRT” + dominic@noreply.oe7drt.com + https://oe7drt.com + + {{ .Permalink }} + {{ range $pages }}{{ if ne .Params.feed_exclude true }} + + {{ .Title }} + + Dominic Reich “OE7DRT” + dominic@noreply.oe7drt.com + https://oe7drt.com + + + {{ .Permalink }} + {{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }} + {{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }} + {{ if .Site.Params.rssFullContent }} + {{ .Summary | html }} + {{ .Content | html }} + {{ else }} + {{ .Summary | html }} + {{ end }} + + {{ end }}{{ end }} +