Example structure
content/blog1
content/blog2
Each post in blog1
and blog2
contains tags
. I’d like to print tags organized by each sections name. For example: display all the tags associated with blog1
and all the tags associated with blog2
.
I believe this is archivable by setting a category
or type
taxonomy for every post under content/blog1
and content/blog2
, so that content/blog1/post
has category: blog
in it’s front matter. But is there a way to do this without setting it up manually and adding category: blog1
to each post under content/blog1
and then printing the tags associated with the category taxonomy? I suppose I would have to write a separate, e.g. bash or python script to add this to all my posts.