diff options
Diffstat (limited to '')
-rw-r--r-- | content/blog/cats/cat_kills/index.md | 1 | ||||
-rw-r--r-- | content/stream/2022-07-25.md | 1 | ||||
-rw-r--r-- | layouts/stream/list.html | 4 | ||||
-rw-r--r-- | layouts/tags/list.html | 20 |
4 files changed, 24 insertions, 2 deletions
diff --git a/content/blog/cats/cat_kills/index.md b/content/blog/cats/cat_kills/index.md index 143238f..95a7994 100644 --- a/content/blog/cats/cat_kills/index.md +++ b/content/blog/cats/cat_kills/index.md @@ -3,6 +3,7 @@ title: "Cat Kill Log" date: 2021-06-21T18:30:49+01:00 draft: false categories: ["Cats"] +tags: ['cats'] --- Ah, springtime! A time of awakening, rebirth, burgeoning buds - and avian diff --git a/content/stream/2022-07-25.md b/content/stream/2022-07-25.md index bd930cc..25596eb 100644 --- a/content/stream/2022-07-25.md +++ b/content/stream/2022-07-25.md @@ -2,6 +2,7 @@ title: "2022 07 25" date: 2022-07-25T15:53:11+01:00 draft: false +tags: ['cats'] --- Been out and about in Fife today. At times, wet. 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 }} |