I’m trying to create a content adapter to create markdown pages with taxonomy tags, but the tags do not show in the generated /tags overview or as /tags/tag1 page. Tags from static .md pages work as expected, only the generated pages do not.
I add the tags in the page dict for .AddPage:
{{ $content := dict
"mediaType" "text/markdown"
"value" "Hello world! (This should have tags 'tag1' and 'tag2')" }}
{{ $title := "Hello" }}
{{ $tags := slice "tag1" "tag2" }}
{{ $page := dict
"path" "hello"
"kind" "page"
"title" $title
"tags" $tags
"content" $content
}}
{{ $.AddPage $page }}
What am I doing wrong?
A full example is at GitHub - robcast/hugo-adapter-tags: Test Hugo content adapter with tags · GitHub