Hello,
With playing with RSS/Atom feed generation today, I have found another issue with outputformats configuration.
I am using Hugo built from latest master
.
With:
[outputs]
taxonomyTerm = ["HTML", "RSS", "ATOM"]
The ATOM output format does not get generated.
And with:
[outputs]
taxonomyTerm = ["HTML"]
The RSS output format still gets generated!
Here is my complete ATOM media type and outputs config:
[mediaTypes]
[mediaTypes."application/atom"]
suffix = "xml"
[outputFormats.Atom]
# https://validator.w3.org/feed/docs/atom.html#whatIsAtom
mediaType = "application/atom"
baseName = "atom" # generated file = <baseName>.<mediaType."application/atom".suffix> = atom.xml
isPlainText = false
[outputs]
home = ["HTML", "RSS", "ATOM"] # default = ["HTML", "RSS"]
section = ["HTML", "RSS", "ATOM"] # posts/atom.xml
taxonomy = ["HTML", "RSS", "ATOM"] # tags/foo/atom.xml
# Fri Mar 23 17:57:08 EDT 2018 - kmodi
# There's some issue on Hugo 0.38-DEV (older versions too).. The "ATOM"
# output format is not getting generated for taxonomyTerm.
taxonomyTerm = ["HTML", "RSS", "ATOM"] # tags/atom.xml
I am using layouts/_default/list.atom.xml template file for generating atom.xml for all of the above Kinds of pages.
- home : https://scripter.co/atom.xml – Exists
- section : https://scripter.co/posts/atom.xml – Exists
- taxonomyTerm : https://scripter.co/tags/atom.xml – Does not exist
- taxonomy : https://scripter.co/tags/hugo/atom.xml – Exists
How to recreate this issue
git clone https://gitlab.com/kaushalmodi/kaushalmodi.gitlab.io.git --recurse-submodules site
cd site/
hugo
# No atom.xml found in public/tags/
# But you will find it at public/tags/hugo/ and other expected places.