Having trouble when creating anew collection #2865
Unanswered
cat-a-flame
asked this question in
Q&A
Replies: 1 comment 4 replies
-
|
I… I think I'm a bit lost.
I'm guessing the bug/issue is in categories.njk where you probably need to use the Alternatively, you could try creating a custom collection named |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there lovely people!
I want to build my blog by using eleventy, and, so far, everything works as expected, only one thing I can't get my head around: I wanted to create a collection named Category. Each post will have their own, similar to tags, but there is only one category per post. Since they are the same, I've copied the tags collection, and everything works, except the single category page, the categories list is fine. I can't figure out why, I don't have errors, only a 404 page when I click the category to see what other posts in there.
eleventy.config.js
categories-list.njk
categories.njk:
blog.11tydata.js
Beta Was this translation helpful? Give feedback.
All reactions