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 d18cc99
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/layouts/tags/list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{ define "main" -}}
<!--
'tags' is a taxonomy
I chose to name the template file 'list.html' as it is the default
used for tags in poison
list of taxonomy template file names: https://gohugo.io/templates/lookup-order/#taxonomy-templates
inspired from https://github.com/lukeorth/poison/blob/eaec6fbf03d9ec29605d5787b656919fac10197d/layouts/_default/list.html#L1
-->

<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 d18cc99

Please sign in to comment.