diff options
author | tdro <tdro@noreply.example.com> | 2022-08-15 22:37:43 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-08-15 22:37:43 -0400 |
commit | 59024e55e1dea279b8acad3a9a8d2403c8bf3028 (patch) | |
tree | 168e8dc90946d773a7f6f862b6c51d6fe3328061 /themes/default/layouts/_default/home.records.html | |
parent | 93624424bf16c2b97e98f8a5c5483d55f0a5023b (diff) | |
download | canory-59024e55e1dea279b8acad3a9a8d2403c8bf3028.tar.gz canory-59024e55e1dea279b8acad3a9a8d2403c8bf3028.tar.bz2 canory-59024e55e1dea279b8acad3a9a8d2403c8bf3028.zip |
config: Use route names in output format labels
Easier search.
Diffstat (limited to 'themes/default/layouts/_default/home.records.html')
-rw-r--r-- | themes/default/layouts/_default/home.records.html | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/themes/default/layouts/_default/home.records.html b/themes/default/layouts/_default/home.records.html new file mode 100644 index 0000000..4161392 --- /dev/null +++ b/themes/default/layouts/_default/home.records.html @@ -0,0 +1,56 @@ +{{ define "title" }}Tags Archive — {{ end }} +{{ define "description" }}This page contains an archive of all tags — {{ end }} +{{ define "styles" }} +<style> + {{ partial "styles-navigator.html" (dict "Link" "/archives/tags/") | safeCSS }} +</style> +{{ end }} + +{{ define "middle" }} + +{{ partial "navigator-middle.html" + (dict + "Title" "Records" + "Subtitle" (partial "count-tags.html" .) + "Icon" "arrow-left" + "IconLabel" "Back" + "Href" "/" + "Id" "back" + "Context" . + ) +}} + +{{- $page := 1 -}} +{{- $count := 0 -}} + +<item-list> + {{ range $taxonomy := .Site.Taxonomies }} + {{ range $tag, $article := $taxonomy }} + <h1><a href="{{ $.Site.BaseURL }}/tags/{{ $tag }}/">#{{ $tag }}</a></h1> + <ul> + {{ range $article.Pages -}} + {{- $count = add $count 1 -}} + <li> + <a + title="{{ partial "meta-title.html" . }}" + href="{{ .Site.BaseURL }}/tags/{{ $tag }}/{{ if gt $page 1 }}page/{{ $page }}/{{ end }}#{{ partial "card-id.html" . }}"> + <span><code>{{ .Date.Format "02 Jan 2006" }}</code></span> + <span>{{ partial "meta-title.html" . }}</span> + <span>@{{ partial "author-user.html" . }}</span> + </a> + </li> + {{ if eq (mod $count $.Paginator.PageSize) 0 }} + {{ $page = add $page 1 }} + {{- end -}} + {{- end -}} + {{- $page = 1 -}} + {{- $count = 0 -}} + </ul> + {{ end }} + {{ end }} +</item-list> +{{ end }} + +{{ define "right" }} + {{- partial "navigator-right.html" . -}} +{{ end }} |