Iβm working on my personal site and want to show all posts with a specific tag on one page. For example, on the /hobbies/amateur-radio page I want to show all posts with tag amateur-radio.
I thought I might just be able to do the following:
{{ $taggedPages := index .Site.Taxonomies.tags.amateur-radio.Pages }}
<ul>
{{ range $taggedPages }}
<li><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
{{ end }}
</ul>
but it seems that templates may only be used in theme layouts and not in the actual HTML files themselves. Any tips on how to accomplish this or any other improvements on how Iβm structuring the site would be greatly appreciated.
Thanks for the help @jmooring - I like the taxonomy method better. Follow-up question regarding layouts:
If Iβm using taxonomies and want to customize the /hobbies page without affecting the files in /themes/readable, Iβd make a file in /layouts/hobbies right? What page type should I be looking at in the lookup order for that /hobbies page?