x-govuk / govuk-eleventy-plugin

Write documentation using Markdown and publish it using GOV.UK styles.
https://x-govuk.github.io/govuk-eleventy-plugin/
MIT License
53 stars 13 forks source link

Define layouts in plugin (requires Eleventy v3.0.0) #290

Open paulrobertlloyd opened 2 months ago

paulrobertlloyd commented 2 months ago

See https://github.com/11ty/eleventy/issues/1612#issuecomment-2204420952

With virtual templates defined in the plugin, consumers no longer need to worry about configuring the path to the layouts folder in node_modules, and it should hopefully be easier to extend (instead of overwrite) plugin-provided layouts.

paulrobertlloyd commented 1 month ago

Good intro here: https://www.aleksandrhovhannisyan.com/blog/eleventy-virtual-templates/