diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2022-07-25 21:35:13 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2022-07-25 21:35:13 +0100 |
commit | 2d368d7b3a87ae8907317dcf3dfc6d2c7abbceeb (patch) | |
tree | c9e7d85a21017fad2966bf66ed6b84f765be513a | |
parent | 3e3c9854c5d0da75962fb077f840d4cb340fe544 (diff) |
tweakage
-rw-r--r-- | layouts/categories/list.html | 14 | ||||
-rw-r--r-- | layouts/tags/list.html | 4 |
2 files changed, 15 insertions, 3 deletions
diff --git a/layouts/categories/list.html b/layouts/categories/list.html new file mode 100644 index 0000000..8336025 --- /dev/null +++ b/layouts/categories/list.html @@ -0,0 +1,14 @@ +{{ define "main" }} + +<main> + <div> + <h2>{{ .Title }}</h2> + <ul> + {{ range .Pages.ByTitle }} + <li><a href="{{ .Permalink }}">{{ .Title }}</a></li> + {{ end }} + </ul> + </div> +</main> + +{{ end }} diff --git a/layouts/tags/list.html b/layouts/tags/list.html index 2cc29e7..d3ee21a 100644 --- a/layouts/tags/list.html +++ b/layouts/tags/list.html @@ -1,13 +1,11 @@ {{ define "main" }} -{{ .Content }} - <main> <div> <h2>{{ .Title }}</h2> <p><a href="/stream/">Stream</a> pages can also receive tags.</p> <ul> - {{ range .Pages }} + {{ range .Pages.ByTitle }} {{ 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> |