The problem I’m having:
WARN 2020/08/22 18:44:04 found no layout file for “banners” for kind “page”:
I don’t see my mistake and could use a fresh set of eyes.
From the lookup order I learned:
- Single page in “posts” section with layout set
- …
- layouts/_default/demolayout.html
- …
In my front matter I have:
---
title: "My banners"
layout:
- banners
outputs:
- banners
---
I defined that custom output as follows:
outputFormats:
Banners:
baseName: banners
mediaType: application/json
In my theme folder I have:
layouts/_default/banners.json
But why doesn’t Hugo pick up my banners.json
template file? I used the same name as its layout is, like the examples suggest (demolayout.html
).
The docs on the custom output formats page also list the same example (layouts/_default/demolayout.html
).
Thanks in advance for any suggestions!