I have an alternate Layout for pages, where I can specify
layout in the front-matter and it uses its own template instead of
single.html. Now, I want a render hook for headings that will only apply if this layout is being used.
Looking at the fine manual, it seems I can have render hooks specific to types, sections, output formats, and languages–but not layouts? Must I create a render hook that is always used, check
.Page.Params.layout, and reproduce the default behavior if my layout is not being used?