-
-
Notifications
You must be signed in to change notification settings - Fork 504
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
Template engine of content affects front matter of layout #446
Comments
For users: my workaround to disable the template language for my content is to wrap it all, head to toe, in |
Hmm… I agree that is is unfortunate. It does seem strange to me that you’d use a nunjucks file but not want nunjucks rendered? It seems almost as though you want an engine override to apply only to the permalink. Something like It will take some persuasion to classify this as a bug and not a feature request though. |
Oh oh, hmm I misread your issue and glossed over your use of |
Created a repro gist https://gist.github.com/zachleat/f199e9b0856337506e13a486d96514ad that exhibited this issue with Eleventy 0.7.1. This issue was fixed with Eleventy 0.8.0. Sorry for the late reply! 0.8.0 was released April 2019 https://github.com/11ty/eleventy/releases/tag/v0.8.0 |
The inputs:
templateEngineOverride: md
layout: post.njk
post.njk
:permalink: "blog/{{ page.date | date: '%Y/%m/%d' }}/{{ title | slug }}/index.html"
The output:
Totally unexpected.
No actual file is written at that location, of course. Perhaps Eleventy swallows the "not a legal file name" error?(I was looking in the wrong directory.)If I set
markdownTemplateEngine
in the.eleventy.js
configuration, the same thing happens, which means every post overwrites the same file.The text was updated successfully, but these errors were encountered: