-
-
Notifications
You must be signed in to change notification settings - Fork 471
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
UsingCircularTemplateContentReferenceError when using Eleventy snippets in Markdown #1237
Comments
This fixed it:
|
Re-opening as this is still an issue if you want to use nunchucks in your markdown. |
Having the same issue here. |
Same issue too here.... But very different environment! ~= 2000 articles, but 3 with a link to a perfectly working page give that message. No idea where to go from there! |
Not really... Just some trouble with |
I was having the same issue with a liquid template (for rendering tags with post excerpts), so the problem seems to be universal. I also use the I have solved the problem (rather clumsily) with the following code snippet at the top of my function excerpt(post){
// list of template pages that iterate over post
const iteratingTemplates = ['./src/index.liquid', './src/tags.liquid'];
if (iteratingTemplates.indexOf(post.inputPath)>-1) {
return null;
}
// now extract the excerpt from post.templateContent
} Of course this means that templates which contain lists can never have excerpts and that you have to add your specific template names to your custom excerpt function. A better approach would probably be to check somewhere in |
I'm trying to render one collection from an item in another collection, and I get this error. I see nothing circular about it. Turning off |
Came across this issue too. Turns out that the problem was that 11ty didn't knew about the collections used. |
Thanks, it seems that this might work, but I do not understand how to use it. I have the same issue, getting a warning for |
I managed to solve this but filtering
|
Describe the bug
When using
In my markdown, I get
I get this for other syntax as well, like when using:
My markdown-it config is
Expected behavior
For eleventy not to process the template code in markdown code snippets.
Environment:
The text was updated successfully, but these errors were encountered: