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

Feedback: move taxonomy.tags/categories/et alii to the .frontmatter subdirectories or the db #558

Closed
davidsneighbour opened this issue Apr 3, 2023 · 2 comments

Comments

@davidsneighbour
Copy link
Contributor

"frontMatter.taxonomy.tags": ["lots", "of", "tags"],
"frontMatter.taxonomy.categories": ["some", "categories"]

I realized these two config items are dynamically updated on content changes. Others for frontmatter values I am not using probably too. If the use of this is to fill dropdowns and keep an index of content, wouldn't it be a better place for them to be either in their own files under .frontmatter/config/taxonomy or even within .frontmatter/content/taxonomyDb.json and categoryDb.json? Updating the config file on content changes feels counterintuitive for the concept of a CMS. Especially non-hierarchical taxonomies might get updated every single time new content is added.

@estruyf
Copy link
Owner

estruyf commented Apr 4, 2023

Are you reading my mind @davidsneighbour 😄. I was thinking about that last week, but I hadn't come up with a solution yet, but you just did.

I love the taxonomyDb.json idea. It makes sense now that I just moved the mediaDb.json to a database folder.

@estruyf
Copy link
Owner

estruyf commented Apr 14, 2023

The tags and categories are now moved to their own taxonomyDb.json file. When you open a project, it will check if tags or categories are present in the DB. If not, it will update it with the one from your settings.

Xnapper-2023-04-14-15 49 33-EEF51F45-F8AE-472C-9904-C3A5F00927FC

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

No branches or pull requests

2 participants