I want to make a custom RSS feed, with all posts from a certain section. Sounds like a good task for custom outputs, right?
So in my config.toml
file I have:
[outputFormats]
[outputFormats.SectionRSS]
name = "SectionRSS"
mediaType = "application/rss"
isPlainText = true
baseName = "index.xml"
isHTML = false
I’ve made a stub content file at /content/mysection/rss-feed.md
with this as its contents:
+++
outputs = ["SectionRSS"]
url = "rss-index.xml"
layout = "section-rss"
+++
And I’ve put the RSS layout file at /themes/theme2018/layouts/_default/section-rss.xml
.
But nothing gets rendered. Where am I going wrong?
Done:
- Read the output formats documentation multiple times.
- Searched the forum with multiple queries.
- Googled.
- Tried all different kind of approaches.
Hugo Static Site Generator v0.40.3 windows/amd64 BuildDate: 2018-05-09T07:47:04Z
GOOS=“windows”
GOARCH=“amd64”
GOVERSION=“go1.10.1”