refactor terms index via Tons note

This commit is contained in:
Wouter Groeneveld 2022-06-20 18:16:53 +02:00
parent 75f6dd1e80
commit 31433028bf
3 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,8 @@
---
date: 2022-06-20T15:09:14+02:00
context: "https://www.zylstra.org/blog/2022/06/adding-an-index/"
---
A much clearer page compared to my archives page, thanks for sharing. I modified my own `/archives` to better reflect yours and Frank's layout. Not yet sure what the cut-off point should be, I'm not that big on tagging yet and my blog isn't as old as your, we'll see how it goes. I have removed one-offs now, and might retro-fit in more tags from older articles.

View File

@ -56,4 +56,4 @@ I also write about retro PC/Handheld gaming and actual _bread baking_ on sister
The following tags are the most used in my writing: {{< popular-categories >}}.
Behold a list of alphabetically sorted tags used in every article on this very website. Related articles share a set of tags.
Behold a list of alphabetically sorted tags used in every article on this very website that appear more than once. Related articles share a set of tags. Happy clicking!

View File

@ -1,4 +1,5 @@
{{ $.Scratch.Set "curLetter" "" }}
{{ $offset := 1 }}
{{ partial "header" . }}
{{ partial "bigimg" . }}
@ -38,9 +39,11 @@
<ul style="padding-left: 1em">
{{ end }}
{{ if gt $cnt $offset }}
<li>
<a href={{ .RelPermalink }} title="All pages with tag {{$name}}">{{.Title}}</a> ({{$cnt}})
</li>
{{ end }}
{{end}}
{{end}}
</div>