Hi everyone!
I’m currently building a blog with articles that have tags attached to them. I want to be able to link each tag to a separate page on the blog (/tag/tag-slug) where visitors can see the tag name, an optional description of the tag, and links to all the articles that have been tagged with it.
Currently, I’m going about this by creating the tags as separate pages in the panel and linking them to the articles via a tag field. Here’s what that looks like in my article.yml file:
tags:
label: Tags
type: tags
options: query
query: site.find("tags").children
The problem with doing it this way is that I have to create and publish every single tag as a page before I can use them as tags within my articles.
Is there a way I can create these tag pages and publish them directly from my article page on the panel? Or better still, is there an easier way to achieve this tagging system without manually creating a page for each tag?