This question is pretty close to what I’m trying to do, but after reading this & the Output Format doc, I’m still having trouble achieving what I want…
I’m using Hugo for a podcast site. Each episode is a separate markdown file in /content/podcast. Currently, they are rendered using /themes/…/layouts/podcast/single.html into /podcast/Episodes/{episode number}-{name of episode}/index.html.
What I want to do is also add a /player.html page into the same folder, generated using a different layout, but have that page not use any of the other nested layout pages… I want the template to be the only thing that’s rendered (it’s going to be used within an IFRAME so none of the site header/footer/sidebar/nav will be included).
I think need to (1) update my output format for the podcast to point to another template like the above-referenced question was looking to do, but I’m having trouble getting the config.yaml file just right. Then (2) I need a template /themes/…/layouts/podcast/player.html that the new config points to.
Question:
-
I’ve tried
outputs
andoutputFormats
… but everything I’ve done just keeps breaking the build. I added podcast to my existingoutputFormats
but not sure how to point to the template. Something it’s clicking for me… someone have a pointer to push me in the right direction?outputFormats: RSS: baseName: rss podcast: baseName: player mediaType: text/html