Hi there!
Say I have tag1, tag2 and tag3 among all my posts.
There is code in Taxonomy to list tags, which I can put into header, something like this
<ul class="sub-nav">
<li class="sub-nav__item">
<a class="sub-nav__link" href="/">Alles</a>
</li>
{{ range .Site.Taxonomies.tags }}
<li class="sub-nav__item">
<a class="sub-nav__link" href="{{ .Page.Permalink }}">{{ .Page.Title }}</a>
</li>
{{ end }}
</ul>
So then, if you click you will navigate to http://myhugoblog/tags/tag1/ (or /tag2/ or /tag3)
How do I make current tag active in header sub-nav ? Say if you navigated to http://myhugoblog/tags/tag2/ The link in above sub-nav should be like
<a class="sub-nav__link sub-nav__link--active" href="#">{{ .Page.Title }}</a>