Using Categories to create a kind of keywords list

I’ve been trying to make a page listing the authors I’ve discussed in my newsletter, with links to the post(s) that mention each author. I thought that the easiest way would be to create a category for each author (although most of the authors are mentioned just once each). Having done that, I created a template containing the following:

{{ $list := ($.Site.GetPage "taxonomyTerm" "categories").Pages }}
	{{ if gt (len $list) 0 }}
		{{ range $list }}
		<p><a href="{{ .Permalink }}">{{ .Title }}</a></p>
	{{ end }}
{{ end }}

The result is here, on my Authors’ list page. (Ignore layout and styling, I’ll sort them out once I’ve got the links working.) The problem is that each name, instead of linking to the posts that mention that author, leads to a full list of my Micro.blog posts. Each link is the same!

Has anyone any idea what I’m doing wrong? I’d be very grateful for any help.

The links generated are correct. What theme are you using and does it not have category pages being built?

Thanks for the reply. I’m using the default theme, and I think that category pages are probably not being built. How do I go about fixing that? I’m very grateful for your help.

Maybe it’s the same issue that was resolved for me at the beginning of the year?

cc: @sod @manton

1 Like

Yes that’s the issue. .Site.Pages versus Pages. That PR linked through that post should lead the way Use .Pages instead of .Site.Pages by svendahlstrand · Pull Request #4 · microdotblog/theme-primrose · GitHub

1 Like

Thanks @simonwoods and @jsonbecker — I haven’t tried this yet but I’ll do so in the next day or two. Much obliged for the help.