]> njoseph.me Git - blog.git/commitdiff
Fix RSS feeds master
authorJoseph Nuthalapati <njoseph@riseup.net>
Mon, 28 Mar 2022 07:52:05 +0000 (13:22 +0530)
committerJoseph Nuthalapati <njoseph@riseup.net>
Mon, 28 Mar 2022 07:52:05 +0000 (13:22 +0530)
Fixed according to this blog post
https://davidbuck.net/post/setup-hugo-to-output-only-an-rss-feed-of-blog-posts/

config.toml

index 03bcff62fe324d98b7cc473550c7ea5bddeb9893..29634fd150fe22201a6fa22776621f745cbbdb00 100644 (file)
@@ -31,3 +31,12 @@ enableRobotsTXT = true
 #     identifier = "about"
 #     weight = 300
 #     url = "/about/"
+
+[outputs]
+home = [ "RSS", "HTML"]
+section  = ["HTML"]
+
+[outputFormats]
+[outputFormats.RSS]
+mediatype = "application/rss"
+baseName = "feed"