Working on a personal site, and I’d like to have a section for talks I’ve given. In addition to the default talks type, I’d like to denote some talks as being, e.g., a workshop or a keynote.
(Yes, I have read Hugo’s Lookup Order, and have even gone so far as to tweak the layout examples in output/docshelper.go to generate bespoke lookup documentation. Apparently I’m still doing something wrong because that output also suggests that layouts/talks/single.html should match…)
The site does render if a layout is present at keynote/single.html or _default/single.html, but I’d really like to re-use the same layout for all content in that Section, which makes me think I’m using type wrong…
Because Hugo doesn’t find it for talks/third.md, which has type = "keynote" in its frontmatter.
The other two talks (talks/first.md and talks/second.md) do not specify a type in their frontmatter, and so they correctly use layouts/talks/single.html.
Since it doesn’t seem like you are trying to say a talk is something else (a different type), any other custom parameters will work; then you key off that any changes you want.