x-govuk / govuk-design-history-template

Document and share design decisions. Create a permanent record of how your service has developed over time.
MIT License
23 stars 9 forks source link

Include stubs for all layouts available in govuk-eleventy-plugin #221

Open paulrobertlloyd opened 1 year ago

paulrobertlloyd commented 1 year ago

If you try to use a layout documented in the plugin guidance (i.e. sub-navigation), the site won't build. We can save any such issues by including stubs for all available layouts. For example:

{% extends "layouts/sub-navigation.njk" %}

See: https://github.com/Methods-Design-Team/Titan-design-history/pull/5

vickytnz commented 1 month ago

Agree with this - it's a bit confusing to ostensibly have the original plugin available but also … not?

paulrobertlloyd commented 1 month ago

Eleventy 3.0 is coming out soon, and it has much smarter way for plugins to provide layouts. I need to experiment with the changes, but it looks like setup and layout overrides can be greatly simplified, meaning issues like this will go away. 🤞