From becc01ac38851d904ede78c5185d69d9ff41d96d Mon Sep 17 00:00:00 2001 From: Brandon Rozek Date: Thu, 5 May 2022 14:19:44 -0400 Subject: [PATCH] Trying out new RSS feed template --- assets/css/pretty-feed-v3.xsl | 183 ++++++++++++++++++++++++++++++++++ layouts/blog/rss.xml | 3 + 2 files changed, 186 insertions(+) create mode 100644 assets/css/pretty-feed-v3.xsl diff --git a/assets/css/pretty-feed-v3.xsl b/assets/css/pretty-feed-v3.xsl new file mode 100644 index 0000000..2e2b095 --- /dev/null +++ b/assets/css/pretty-feed-v3.xsl @@ -0,0 +1,183 @@ + + + + + + + + <xsl:value-of select="/rss/channel/title"/> Web Feed + + + + + + +
+ +
+ + + +
+

Recent Items

+ +
+

+ + + + + + +

+ + Published: + +
+
+
+ + +
+
diff --git a/layouts/blog/rss.xml b/layouts/blog/rss.xml index 3e17f48..22a5ac5 100644 --- a/layouts/blog/rss.xml +++ b/layouts/blog/rss.xml @@ -6,10 +6,13 @@ {{- $pages = $pages | first $limit -}} {{- end -}} {{- printf "" | safeHTML }} +{{- $style := resources.Get "css/pretty-feed-v3.xsl" -}} +{{- printf "" $style.Permalink | safeHTML }} {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} {{ .Permalink }} + {{ .Site.BaseURL }}/img/{{ .Site.Params.avatar }} Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} Hugo -- gohugo.io{{ with .Site.LanguageCode }} {{.}}{{end}}{{ with .Site.Author.email }}