diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2022-07-25 20:44:40 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2022-07-25 20:44:40 +0100 |
commit | d5f140f3ede89b6fe1b6e29231b9842726b89d10 (patch) | |
tree | 38425fda0d46ed64ebfb6d59dc3bea0fba52ebdf /layouts | |
parent | d9a2d5463d704b36b03d9fe2bebbcdcff198bbb8 (diff) |
now able to assign tags to stream posts
Diffstat (limited to '')
-rw-r--r-- | layouts/stream/list.html | 4 | ||||
-rw-r--r-- | layouts/tags/list.html | 20 |
2 files changed, 22 insertions, 2 deletions
diff --git a/layouts/stream/list.html b/layouts/stream/list.html index 1987b21..bf83b80 100644 --- a/layouts/stream/list.html +++ b/layouts/stream/list.html @@ -2,8 +2,8 @@ {{ .Content }} -{{ range where site.RegularPages "Section" "stream" }} - <h3>{{ .Date.Format "Monday, 2 January 2006" }}</h3> +{{ range where site.RegularPages "Section" "stream" }} +<h3 id="{{ .Date.Format "Monday, 2 January 2006"| urlize}}">{{ .Date.Format "Monday, 2 January 2006" }}</h3> {{ .Content }} <hr class="new1"> {{ end }} diff --git a/layouts/tags/list.html b/layouts/tags/list.html new file mode 100644 index 0000000..1c71a59 --- /dev/null +++ b/layouts/tags/list.html @@ -0,0 +1,20 @@ +{{ define "main" }} + + +<main> + <div> + <h2>{{ .Title }}</h2> + <ul> + {{ range .Pages }} + {{ 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 }} |