Advice on best practice for linking to and displaying tag lists

Hi! I am working on a new site. It will do the following:

  • List a bunch of concepts, with descriptions
  • List places (references) where these concepts are used/described

So I want to be able to do something like:
You’re on the page with the concept + description.
You can click a link to view a list of places tagged with this term
Show a list on the concept page of all the places where it’s used (with link to more info)

I have something very basic working: https://github.com/StarfallProjects/habermas-concepts

So on a “concept” page, you can click a link and it takes you to the tag list showing all pages tagged with the concept title.

> <a href="{{ .Site.BaseURL}}/tags/{{ .Title | urlize }}">View all references for this concept</a>

What I’m wondering is:

  • Is this the best way of creating that link?
  • What’s the best way of listing all pages with a particular tag on the concept page? I figure I could do something like iterate over ALL pages WHERE tag equals, but am wondering if there is a more elegant way, given that Hugo has already created a list page and so has some concept of grouping those pages?

Thanks in advance for any feedback!

With Hugo 0.65.x I changed it to this snippet

	{{ range (.GetTerms "tags") }}
		<a  href={{ .Permalink }} title="List tags: {{ .LinkTitle }}">{{ .LinkTitle }}</a>
	{{ end}}

Sorry I’m confused - is that for the link to the auto-generated tags page, or to list all pages with a given tag? I assume the latter, but how does it only show tags for the concept?