HUGO

How to access the taxonomy that term belongs to?

Hi all, I want to display the taxonomy name in the term page’s title.

For example:
http://localhost:1313/tags/foo: foo - tags - site title
http://localhost:1313/categories/bar: bar - categories- site title

See https://discourse.gohugo.io/t/check-if-the-current-path-in-gohugo-matches-a-pattern-with-regex/34004/2

1 Like

Thanks a lot.

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