How to Set/Use Taxonomy Metadata

The documentation notes that metadata for a specific taxonomy term can be set as front matter in a file /content/<TAXONOMY>/<TERM>/_index.md. My question is: how can I set metadata for the taxonomy itself, please? I tried creating /content/<TAXONOMY>/_index.md but either that isn’t supported or I couldn’t find it as a variable.

I found similar questions, but nothing quite as explicitly stated in these terms. So I hope this framing of the question might bring a different focus.

I’m currently using Hugo 0.80.0.

content/tags/_index.md

+++
title = 'Tags'
date = 2021-10-04T07:28:15-07:00
draft = false
foo = 'bar'
+++

Retrieve values with:

{{ (site.GetPage "tags").Params.foo }}

Ahhh, excellent, thank you. Had tried various things, but had missed that. (Still a neophyte Hugo user.)

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.