From 0d3ee84cf9553cb76ebbca01597be81fe26f95fa Mon Sep 17 00:00:00 2001 From: Alexander Avery Date: Thu, 29 May 2025 11:58:16 -0400 Subject: [PATCH] add rss feed to head.html --- layouts/partials/head.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 571c3a3..cba17f5 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,5 +1,9 @@ {{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }} -{{ partialCached "head/css.html" . }} - \ No newline at end of file +{{- partialCached "head/css.html" . }} + + +{{ with .OutputFormats.Get "rss" }} + {{- printf `` .Rel .MediaType.Type .Permalink site.Title | safeHTML }} +{{- end }} \ No newline at end of file