Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add layout for illustration+title/subtitle pattern #81

Closed
danieltott opened this issue Nov 12, 2020 · 1 comment
Closed

Add layout for illustration+title/subtitle pattern #81

danieltott opened this issue Nov 12, 2020 · 1 comment
Labels
Status: Available This issue is free to be worked on (pick me!) Tech: nunjuks Type: enhancement New feature or request

Comments

@danieltott
Copy link
Member

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:

---
layout: "layouts/illustrationHeader.njk"
title: "Brownbag Talk Submission Form"
description: "Submit an idea for a Virtual Coffee Brown Bag talk"
permalink: "brownbag-idea/"
header: "Virtual Coffee: Brownbag"
subhead: "We can't wait to hear your talk!"
illustration: "svg/undraw_Presentation_62e1.svg"
---

The illustrationHeader.njk layout would extend the default.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

@danieltott danieltott added Type: enhancement New feature or request Status: Available This issue is free to be worked on (pick me!) Tech: nunjuks labels Nov 12, 2020
@danieltott
Copy link
Member Author

This can now be done via the simple layout!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Available This issue is free to be worked on (pick me!) Tech: nunjuks Type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant