diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2022-07-26 08:05:32 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2022-07-26 08:05:32 +0100 |
commit | 197ae3704fc8f52631551ad695c0210b52cba22b (patch) | |
tree | e4f0eb58f3535caf55ee1c5187445b1837b9230a | |
parent | 9ffed1618952cfab44c54a675f17d51f61265d93 (diff) |
reorder term for tags by date
-rw-r--r-- | layouts/tags/term.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/layouts/tags/term.html b/layouts/tags/term.html new file mode 100644 index 0000000..51965a3 --- /dev/null +++ b/layouts/tags/term.html @@ -0,0 +1,20 @@ +{{ define "main" }} + + <main> + <div> + <h2>{{ .Title }}</h2> + {{ .Content }} + <ul> + {{ range .Pages.ByDate.Reverse }} + {{ if eq .Section "stream"}} + {{ $url := (.Date.Format "Monday 2 January 2006") | urlize }} + <li>Stream: <a href="/stream/#{{ $url }}">{{ .Date.Format "Monday 2 January 2006" }}</a></li> + {{ else }} + <li><a href="{{ .Permalink }}">{{ .Title }}</a></li> + {{ end }} + {{ end }} + </ul> + </div> + </main> + +{{ end }} |