diff options
Diffstat (limited to 'layouts')
-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 }} |