Raymond Camden is a Senior Developer Evangelist for Adobe. He works on the Document Services APIs to build powerful (and typically cat-related) PDF demos.
[11ty] > Having trouble rendering liquid template ./blog/index.liquid
TemplateContentRenderError was thrown
[11ty] > Having trouble compiling template ./blog/index.liquid
TemplateContentCompileError was thrown
[11ty] > tag "excerpt" not found, file:./blog/index.liquid, line:6, col:1, file:./blog/index.liquid, line:3, col:1
ParseError was thrown
[11ty] > tag "excerpt" not found, file:./blog/index.liquid, line:6, col:1
ParseError was thrown
[11ty] > tag "excerpt" not found
AssertionError was thrown:
[11ty] AssertionError: tag "excerpt" not found
at new AssertionError (/Users/laurenfosgett/Eleventy-Projects/eleventyBlog/node_modules/liquidjs/dist/liquid.node.cjs.js:663:28)
at assert (/Users/laurenfosgett/Eleventy-Projects/eleventyBlog/node_modules/liquidjs/dist/liquid.node.cjs.js:815:15)
at TagMap.get (/Users/laurenfosgett/Eleventy-Projects/eleventyBlog/node_modules/liquidjs/dist/liquid.node.cjs.js:4226:9)
at new Tag (/Users/laurenfosgett/Eleventy-Projects/eleventyBlog/node_modules/liquidjs/dist/liquid.node.cjs.js:2464:32)
at Parser.parseToken (/Users/laurenfosgett/Eleventy-Projects/eleventyBlog/node_modules/liquidjs/dist/liquid.node.cjs.js:2552:24)
at ParseStream.parseToken (/Users/laurenfosgett/Eleventy-Projects/eleventyBlog/node_modules/liquidjs/dist/liquid.node.cjs.js:2565:80)
at ParseStream.start (/Users/laurenfosgett/Eleventy-Projects/eleventyBlog/node_modules/liquidjs/dist/liquid.node.cjs.js:1253:33)
at Object.parse (/Users/laurenfosgett/Eleventy-Projects/eleventyBlog/node_modules/liquidjs/dist/liquid.node.cjs.js:2720:16)
at new Tag (/Users/laurenfosgett/Eleventy-Projects/eleventyBlog/node_modules/liquidjs/dist/liquid.node.cjs.js:2468:24)
at Parser.parseToken (/Users/laurenfosgett/Eleventy-Projects/eleventyBlog/node_modules/liquidjs/dist/liquid.node.cjs.js:2552:24)
[11ty] Wrote 0 files in 0.04 seconds (v1.0.0)
The bolded portion above caught my eye, is that expected? The most similar thing I could find is this issue: github.com/11ty/eleventy/issues/2098
I should note I'm on MacOS Monterey, Node v14.18.2. And if there's somewhere else I should be directing these questions please let me know!
Raymond Camden is a Senior Developer Evangelist for Adobe. He works on the Document Services APIs to build powerful (and typically cat-related) PDF demos.
Raymond Camden is a Senior Developer Evangelist for Adobe. He works on the Document Services APIs to build powerful (and typically cat-related) PDF demos.
Ok, I think the issue is that your files/folders are a bit different than they should be. That can totally be on my guide's fault, but look at github.com/cfjedimaster/eleventy-b... and note how in the root, we have .eleventy.js, with the blog folder under. In your zip, you've got _includes and blog at root, with .eleventy.js under blog.
Does that make sense?
Did my guide lead you astray?
Eureka! That all makes sense. I was trying to use another tip from a different guide related to Browsersync not live updating if there wasn't a body tag in the template, and that's where the _includes and layouts came from. I removed the _includes and layouts I added, moved .eleventy.js and now it's all working!
For the site structure, I think this is where I made my mistake: "Make a blog directory and then a .eleventy.js file that for now only contains"... I think this is user error on my part all around, and I didn't realize I created .eleventy.js inside the blog folder. Your directions make sense, and if I had looked at the guide repo earlier I might have caught this sooner.
Thank you so much for your help, I'm going to carry on with the guide and I'll let you know if anything else trips me up!
Raymond Camden is a Senior Developer Evangelist for Adobe. He works on the Document Services APIs to build powerful (and typically cat-related) PDF demos.
If you kill Eleventy and re-run it, does it help?
It doesn't unfortunately. Here is the full log:
[11ty] > Having trouble rendering liquid template ./blog/index.liquid
TemplateContentRenderError
was thrown[11ty] > Having trouble compiling template ./blog/index.liquid
TemplateContentCompileError
was thrown[11ty] > tag "excerpt" not found, file:./blog/index.liquid, line:6, col:1, file:./blog/index.liquid, line:3, col:1
ParseError
was thrown[11ty] > tag "excerpt" not found, file:./blog/index.liquid, line:6, col:1
ParseError
was thrown[11ty] > tag "excerpt" not found
AssertionError
was thrown:[11ty] AssertionError: tag "excerpt" not found
at new AssertionError (/Users/laurenfosgett/Eleventy-Projects/eleventyBlog/node_modules/liquidjs/dist/liquid.node.cjs.js:663:28)
at assert (/Users/laurenfosgett/Eleventy-Projects/eleventyBlog/node_modules/liquidjs/dist/liquid.node.cjs.js:815:15)
at TagMap.get (/Users/laurenfosgett/Eleventy-Projects/eleventyBlog/node_modules/liquidjs/dist/liquid.node.cjs.js:4226:9)
at new Tag (/Users/laurenfosgett/Eleventy-Projects/eleventyBlog/node_modules/liquidjs/dist/liquid.node.cjs.js:2464:32)
at Parser.parseToken (/Users/laurenfosgett/Eleventy-Projects/eleventyBlog/node_modules/liquidjs/dist/liquid.node.cjs.js:2552:24)
at ParseStream.parseToken (/Users/laurenfosgett/Eleventy-Projects/eleventyBlog/node_modules/liquidjs/dist/liquid.node.cjs.js:2565:80)
at ParseStream.start (/Users/laurenfosgett/Eleventy-Projects/eleventyBlog/node_modules/liquidjs/dist/liquid.node.cjs.js:1253:33)
at Object.parse (/Users/laurenfosgett/Eleventy-Projects/eleventyBlog/node_modules/liquidjs/dist/liquid.node.cjs.js:2720:16)
at new Tag (/Users/laurenfosgett/Eleventy-Projects/eleventyBlog/node_modules/liquidjs/dist/liquid.node.cjs.js:2468:24)
at Parser.parseToken (/Users/laurenfosgett/Eleventy-Projects/eleventyBlog/node_modules/liquidjs/dist/liquid.node.cjs.js:2552:24)
[11ty] Wrote 0 files in 0.04 seconds (v1.0.0)
The bolded portion above caught my eye, is that expected? The most similar thing I could find is this issue: github.com/11ty/eleventy/issues/2098
I should note I'm on MacOS Monterey, Node v14.18.2. And if there's somewhere else I should be directing these questions please let me know!
Do you mind zipping your code as is now and sending it to me? My personal email is raymondcamden at gmail dot com.
Sent your way, thanks!
Ok, I think the issue is that your files/folders are a bit different than they should be. That can totally be on my guide's fault, but look at github.com/cfjedimaster/eleventy-b... and note how in the root, we have .eleventy.js, with the blog folder under. In your zip, you've got _includes and blog at root, with .eleventy.js under blog.
Does that make sense?
Did my guide lead you astray?
Eureka! That all makes sense. I was trying to use another tip from a different guide related to Browsersync not live updating if there wasn't a body tag in the template, and that's where the _includes and layouts came from. I removed the _includes and layouts I added, moved .eleventy.js and now it's all working!
For the site structure, I think this is where I made my mistake: "Make a blog directory and then a .eleventy.js file that for now only contains"... I think this is user error on my part all around, and I didn't realize I created .eleventy.js inside the blog folder. Your directions make sense, and if I had looked at the guide repo earlier I might have caught this sooner.
Thank you so much for your help, I'm going to carry on with the guide and I'll let you know if anything else trips me up!
Woot! :)