is there a way to assign a taxonomy (e.g. “tag”) to all files in a folder - so if “a.md”, “b.md” and “c.md” are all located in a folder “projects”, I’d like to tag them as “project” without having to add
tag:
- project
to each single file?
I tried playing around with “_index.md”, but this doesn’t seem to work …
I haven’t tried the cascade for taxonomy terms, but the method to get a list of all taxonomy terms in a page object is .GetTerms. In your case .GetTerms("tags").
adds a tag from “_index.md” to the list on the page.
From what I see on the docs posted by @davidsneighbour this should work - so I’ll re-check my settings and maybe build a small test-site to check there’s nothing interfering from my current settings.
found the problem - @jmooring: I did indeed overwrite the default taxonomies, which caused some trouble here.
From what I see in the docs (and played around with now that it’s working), the moment I add tags to the frontmatter of the page, the cascaded values are gone and I there is no way to keep the cascaded tags and add some additional tags using the frontmatter of the page.