I am trying to have my Atom feed generated under a file named feed.atom, similar to index.xml (which I successfully renamed to feed.rss, it that matters).
Finally I was creating my template file under /layouts/_default/index.atom.
Result: The feed files for home taxonomy is generated as expected, other taxonomies still miss their files
I can also see in the console that there are quite some warnings:
WARN 2019/08/05 14:01:44 found no layout file for "atom" for "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2019/08/05 14:01:44 found no layout file for "atom" for "section": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
I know it has something to do with Hugo’s lookup orders and I tried lots of combinations according to the documentation. It seems I still don’t get it
Is anybody willing to give me a hint that would guide me into the right direction?
Thanks! It was too abvious to me it seems that I forgot to mention that I did that as well.
If that wasn’t the case, none of the warnings would appear and also the public/feed.atom file would not be generated already.
Any idea how to resolve the warnings to that Hugo can find the template file to generate the files also for sections and taxonomy nodes?
Oh, and I wrote my very own Atom template and did not use the template file you linked. (yours also implies to use the default file name index.xml, not feed.atom which is what I want).
Nope, index.atom didn’t work either. It actually sounds like a bug to me… (for the record, using Hugo v0.56.3).
There is only one single file using extension .atom and that’s my list.atom file right now.
If I simply change the file suffix back to “xml”, then feed.xml will start to work. You could think that also feed.atom must work but it doesn’t. It seems to me when you are not working with one of the common suffixes, it is not behaving as expected.