Skip to content

Commit

Permalink
Add a 'tags' taxonomy template to remove grouping by date (reouscre o…
Browse files Browse the repository at this point in the history
…nly tags don't have a date)
  • Loading branch information
ctmbl committed Aug 31, 2024
1 parent 23864b0 commit 6f373fd
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/layouts/tags/list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{{ define "main" -}}
<!--
'list.html' is the 'tags' taxonomy template
I chose to name the template file after the default taxonomy template filename
in poison: https://github.com/lukeorth/poison/tree/master/layouts/_default
list of sections template file names: https://gohugo.io/templates/lookup-order/#taxonomy-templates
-->
<!-- shamelessly stolen from poison: https://github.com/lukeorth/poison/blob/master/layouts/_default/list.html -->


<h1 class="title">{{ .Title }}</h1>
<ul class="entries">
{{ range .Pages.ByTitle }}
<li>
<span class="title">
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</span>
</li>
{{ end }}
</ul>
{{ end }}

0 comments on commit 6f373fd

Please sign in to comment.