From: Joseph Nuthalapati Date: Mon, 28 Mar 2022 07:50:22 +0000 (+0530) Subject: Fix RSS feeds X-Git-Url: http://njoseph.me/gitweb/hyde.git/commitdiff_plain/HEAD Fix RSS feeds Fixed the configuration according to this blog post https://davidbuck.net/post/setup-hugo-to-output-only-an-rss-feed-of-blog-posts/ --- diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 30ff316..1b132ae 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -26,9 +26,7 @@ - {{ range .AlternativeOutputFormats -}} - {{ printf `` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }} - {{ end -}} + {{ partial "hook_head_end.html" . }} diff --git a/layouts/rss.xml b/layouts/rss.xml index 50de51c..08b6f55 100644 --- a/layouts/rss.xml +++ b/layouts/rss.xml @@ -13,7 +13,7 @@ {{ with .OutputFormats.Get "RSS" }} {{ printf "" .Permalink .MediaType | safeHTML }} {{ end }} - {{ range .Pages }} + {{ range where .Site.RegularPages "Section" "posts" }} {{ .Title }} {{ .Permalink }}