Skip to content
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

Setting templateEngineOverride in directory data file has no effect #445

Open
thejohnfreeman opened this issue Mar 13, 2019 · 5 comments
Open
Labels

Comments

@thejohnfreeman
Copy link

See: https://github.com/thejohnfreeman/11ty.thejohnfreeman.com/blob/data-template-override/src/blog/blog.json

I expected I could change the templateEngineOverride in my directory data file the same way I could change layout, but it has no effect. It doesn't matter if I choose false, "md", or ["md"].

@zachleat zachleat added the bug label Mar 21, 2019
@zachleat
Copy link
Member

Ah, yep. I would expect that you can do this but this is (I believe unnecessarily) just limited to front matter data at the moment.

@samuelpath
Copy link
Contributor

@thejohnfreeman Your link (https://github.com/thejohnfreeman/11ty.thejohnfreeman.com/blob/data-template-override/src/blog/blog.json) resolves to 404 on Github:

image

@zachleat you said:

I would expect that you can do this but this is (I believe unnecessarily) just limited to front matter data at the moment.

So is this a bug as the tag implies, or rather a feature request?

@Ryuno-Ki
Copy link
Contributor

Ryuno-Ki commented Mar 5, 2020

In fact, the whole repo vanished.

@Dexus
Copy link

Dexus commented May 12, 2020

I need to refresh this Issue.

i have in my blog directory a blog.yaml(can also be a json) with templateEngineOverride: njk,md but it will not respected, only on the blog post file self it will respected.

Would love to see this in the next release fixed.

Thank you!

@zachleat
Copy link
Member

Just FYI we needn’t a repro here, I already know where this is coming from.

One complication here is layouts—it’s almost as though we need the full data cascade but ignore layout front matter—hmm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants