Skip to content

Commit

Permalink
Fix Nunjucks search paths to correctly add input path
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Nov 6, 2024
1 parent 801127c commit daab309
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/nunjucks.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ module.exports = (eleventyConfig) => {
resolveNpmModule('@x-govuk/govuk-prototype-components'),
...(includes ? [path.join(input, includes)] : []),
...(layouts ? [path.join(input, layouts)] : []),
...input
input
]

console.log(searchPaths)

/**
* Set default options, but respect `nunjucksEnvironmentOptions`
* @see {@link https://www.11ty.dev/docs/languages/nunjucks/#optional-use-your-nunjucks-environment-options}
Expand Down

0 comments on commit daab309

Please sign in to comment.