diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2022-07-26 07:34:30 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2022-07-26 07:34:30 +0100 |
commit | f0bc6c93bda866045f8dfa4d7791c6e573b2ddf6 (patch) | |
tree | b0b43f32f3e674e755e0baf7870290d6c1cdd071 /layouts/stream | |
parent | 2d368d7b3a87ae8907317dcf3dfc6d2c7abbceeb (diff) |
added list of tags to bottom of post
Diffstat (limited to 'layouts/stream')
-rw-r--r-- | layouts/stream/list.html | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/layouts/stream/list.html b/layouts/stream/list.html index bf83b80..a45ef0b 100644 --- a/layouts/stream/list.html +++ b/layouts/stream/list.html @@ -1,11 +1,23 @@ {{ define "main" }} -{{ .Content }} - {{ range where site.RegularPages "Section" "stream" }} <h3 id="{{ .Date.Format "Monday, 2 January 2006"| urlize}}">{{ .Date.Format "Monday, 2 January 2006" }}</h3> + {{ .Content }} + + {{ if .Params.tags }} + <div style="background-color: rgb(240, 240, 240);"> + This post is tagged with: + {{ range .Params.tags }} + <a href="{{ "tags" | absURL }}/{{ . | urlize }}">{{ . }}</a> + {{ end }} + {{ else }} + <div style="background-color: rgb(240, 240, 240); margin-top: 20px;"> + This post is untagged. + </div> + {{ end }} + </div> <hr class="new1"> -{{ end }} + {{ end }} {{ end }} |