From 60d72ef7fdf147eb06951ca6f2617e4948f3f135 Mon Sep 17 00:00:00 2001 From: mms Date: Wed, 13 Nov 2024 21:37:59 +0100 Subject: chore(rss): fix format --- themes/24-unification/layouts/_default/rss.xml | 41 ++------------------------ 1 file changed, 3 insertions(+), 38 deletions(-) diff --git a/themes/24-unification/layouts/_default/rss.xml b/themes/24-unification/layouts/_default/rss.xml index ece24e6..e509c52 100644 --- a/themes/24-unification/layouts/_default/rss.xml +++ b/themes/24-unification/layouts/_default/rss.xml @@ -1,35 +1,3 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{- $pctx := . }} {{- if .IsHome }}{{ $pctx = .Site }}{{ end }} {{- $pages := slice }} @@ -51,11 +19,8 @@ {{ .Permalink }} Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}on {{ .Site.Title }} Hugo -- gohugo.io - {{ site.Language.LanguageCode }}{{ with $authorEmail }} - {{.}}{{ with $authorName }} ({{ . }}){{ end }}{{ end }}{{ with $authorEmail }} - {{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }}{{ with .Site.Copyright }} - {{ . }}{{ end }}{{ if not .Date.IsZero }} - {{ (index $pages.ByLastmod.Reverse 0).Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} + rss + {{ (index $pages.ByLastmod.Reverse 0).Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{- with .OutputFormats.Get "RSS" }} {{ printf "" .Permalink .MediaType | safeHTML }} {{- end }} @@ -64,7 +29,7 @@ {{ .Title }} {{ .Permalink }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{- with $authorEmail }}{{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }} + mms {{ crypto.MD5 .Date }} {{ if in .Page.Params.Categories "blog" }} -- cgit v1.2.3