-
-
Notifications
You must be signed in to change notification settings - Fork 494
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
Disable native creation of collection based on tags #1254
Comments
I've long wondered whether the auto-tags collections should really be collected under There may have been a thread on this before, but I couldn't find it. |
You can take that approach or you can keep 11ty less opinionated and leave it to plugins/users. |
Would be nice if "tags" could simply be renamed by the user in the |
@sielay I think I’m agreeing with @vwkd here that an option to rename would be better (with a I’d start by adding a
|
Happy to make PR for it |
Though I think we speak here about two separate features. One thing is moving tags aside, another thing is that tags themselves pollute the |
I might even say three things!
|
Hm. Alright. Just need bit more coffee. On it. |
I updated #1255
|
@zachleat @edwardhorsford @vwkd thoughts? |
Hi there, I am dropping in after one year wondering wether @sielay PR is ever going to be merged. For what my opinion can be worth, I have just begun to work with Eleventy and I think that AFAIK it is the only software using the I cannot wrap my head around the motivation for not using a way simpler solution, that I consider to be straightforward and intuitive:
I believe using this approach would be optimal and much less painful for anyone using other software incompatible with this interpretation of tags (Obsidian, to name one) or transitioning from another SSG (such as Jekyll). Allow me to take the opportunity to thank you for your work and for the great software you are building, I am loving it! (except for this itchy tags matter ahah) |
I highly support this: PROS: An issue without a good resolution is resolved CONS: People need to click on the search tab in vscode, enter Proposed solution: Show warning for 3 months when people don't use |
I agree with this. I ran into issues in this area when dealing with exported content that had a ton of tags containing oddball Unicode characters1, which were really tripping 11ty up. I eventually normalized everything through trial and error, but ability to just disable it would’ve been super helpful. It would've also been handy to be able to opt other pieces of front matter into the automatic collection generator, since the exported content also had 20 or so categories like "News", "Opinion", etc, which I wanted to make collections for.
I think an config option to change this would make a lot of sense, but this feels inelegant. Maybe something like A string would do the same thing as the current behavior, but with a different YAML key. An array of keys would generate nested collections like This would also allow the use of a Edit after posting: I see @boehs has already proposed a similar idea at #1255, including maintaining the current behavior as the default config. Consider this a comment in support of that! Footnotes
|
Apropos unicode: Using the 11ty base blog template, adding a new post with tags:
- עיברית
- English fails:
but this builds: tags:
- English |
@zachleat apologies for the second ping! Any chance this can make it onto the Eleventy 3.0.0 milestone? |
Is your feature request related to a problem? Please describe.
Currently
tags
works as reserved field in the frontmatter that assigns the page to the collections matching a tag name. For valuestags: [ hello, World ]
it will populate following collections:It does not hurt much with different approaches to taxonomy but pollutes collections dictionary. For instance, I have a blog with a few hundred posts and about a hundred tags. I chose to approach that instead of polluting collections dictionary nests taxonomies in the following way:
If we keep existing behaviour mixing both approaches results in messy collection like:
Describe the solution you'd like
I'd like to provide to the config toggle that prevents eleventy from populating collections based on
tags
field.Adding such function would allow also to provide predefined taxonomy strategies as npx runnable zero-config libraries (in the same way we do
npx @11ty/eleventy
Describe alternatives you've considered
I considered keeping the existing state. Anyhow, I find it limited and too opinionated for generic use of a library like eleventy.
Additional context
The text was updated successfully, but these errors were encountered: