Add layout for illustration+title/subtitle pattern #81
Labels
Status: Available
This issue is free to be worked on (pick me!)
Tech: nunjuks
Type: enhancement
New feature or request
Issue Context
We've established a layout pattern that we've used on a lot of pages, where the first block is an illustration + h1 and an optional lead subhead. Some examples:
I think we could create a new layout that uses this, and pass in front matter to set the illustration/h1/subhead
An example of what the front matter could look like for a page:
The
illustrationHeader.njk
layout would extend thedefault.njk
layout.This isn't all set in stone, but I think it could work.
Alternatives Considered
The other way to do this would be by creating a macro, but the layout pattern would allow a Markdown file to use this nice layout, for example.
Additional Resources
The text was updated successfully, but these errors were encountered: