From da242991b73dcb1199bfc0e71f66605db84cf67b Mon Sep 17 00:00:00 2001
From: Greg Gauthier
Date: Wed, 25 Jan 2023 14:49:03 +0000
Subject: [PATCH] I think rss is working now
---
layouts/partials/head.html | 9 ++++++---
layouts/{_default => }/rss.xml | 11 -----------
2 files changed, 6 insertions(+), 14 deletions(-)
rename layouts/{_default => }/rss.xml (82%)
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 1b7267f..753b461 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -1,7 +1,10 @@
- {{ with .OutputFormats.Get "rss" -}}
- {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
- {{ end -}}
+
+ {{ if .OutputFormats.Get "RSS" }}
+
+ {{ end }}
+
{{ $css := "css/index.css" | relURL }}
diff --git a/layouts/_default/rss.xml b/layouts/rss.xml
similarity index 82%
rename from layouts/_default/rss.xml
rename to layouts/rss.xml
index b0b150b..21b222f 100644
--- a/layouts/_default/rss.xml
+++ b/layouts/rss.xml
@@ -41,24 +41,13 @@
{{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}
{{ .Permalink }}
- {{ if isset .Params "image" }}
- {{ with .Params.image }}
-
- {{ end }}
- {{ end }}
-
{{`
{{end}}
{{ .Summary | safeHTML }}
]]>
{{`
- {{end}}
{{ .Content | safeHTML }}
]]>