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