-
Notifications
You must be signed in to change notification settings - Fork 49
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
Nunjucks extends, file not found #43
Comments
turns out the path to the template being extended is relative to the the root of the project.
|
Yeah the implementations differ from engine to engine.
Basically any option that's passed to metalsmith-layouts that it doesn't recognise is passed on to consolidate. So you can use that, and you can also configure a global instance of nunjucks ( |
Does anyone have an explanation of how to resolve this issue? I'm having the same problem with extends and haven't had any luck with any of the suggestions mentioned here. |
Ah! Finally found it. The directory has to be set like this:
|
Having trouble getting template inheritance to work with Nunjucks. Tried putting both templates in the layouts directory and also defining partials as "layouts" but always get "file not found" error for the template being inherited.
Consolidate.js suggets this loader option, not sure how that would work in the context of metalsmith?
The text was updated successfully, but these errors were encountered: