aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default/taxonomy.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/_default/taxonomy.html')
-rw-r--r--themes/default/layouts/_default/taxonomy.html31
1 files changed, 15 insertions, 16 deletions
diff --git a/themes/default/layouts/_default/taxonomy.html b/themes/default/layouts/_default/taxonomy.html
index e0126d2..5c8e2ba 100644
--- a/themes/default/layouts/_default/taxonomy.html
+++ b/themes/default/layouts/_default/taxonomy.html
@@ -1,26 +1,27 @@
{{- define "styles" -}}
<style>
- {{ partial "styles-navigator.html" (dict "Link" "/tags/") | safeCSS }}
+ {{ partial "navigator.css.html" (dict "Link" "/tags/") | safeCSS }}
</style>
{{- end -}}
-{{- define "middle" -}}
-
+{{- define "header" -}}
{{- partial "navigator-middle.html"
(dict
- "Title" "Tags"
- "Subtitle" (partial "count-tags.html" .)
- "Icon" "arrow-left"
+ "Context" .
"IconLabel" "Back"
- "Href" "/"
"Id" "back"
- "Context" .
+ "Title" "Tags"
+ "Icon" "arrow-left"
+ "Subtitle" (print (partial "count-tags.html" .) " " "Total")
+ "Href" (or (and (gt .Paginator.PageNumber 1) (.Paginator.Prev.URL | absURL)) "/")
)
-}}
+{{- end -}}
+{{- define "middle" -}}
<tag-deck>
{{- range .Paginator.Pages -}}
- {{- $count := len .Data.Pages -}}
+ {{- $count := lang.FormatNumberCustom 0 (len .Data.Pages) -}}
{{- $title := lower .Title -}}
{{- range first 1 .Pages -}}
@@ -42,16 +43,11 @@
</picture>
</a>
</figure>
- <h3>
- <a data-hover href="{{ print ("" | absURL) "/" $author.user "/" }}">
- @{{ $author.user }}
- </a>
- </h3>
<time
datetime="{{ .Date | time.Format "2006-01-02T15:04:05Z" }}"
title="{{ .Date | time.Format "Posted: Monday, January 2, 2006 at 15:04:05 MST" }}"
>
- {{ .Date.Format "02 Jan 2006" }}
+ {{ .Date | time.Format "02 Jan 2006" }}
</time>
<p>
<a data-hover href="{{ print ("" | absURL) "/tags/" $title "/#" (partial "card-id.html" .) }}">
@@ -63,8 +59,11 @@
{{- end -}}
{{- end -}}
</tag-deck>
+{{- end -}}
- {{ partial "pagination.html" . }}
+{{- define "footer" -}}
+ {{- partial "pagination.html" . -}}
+ {{- partial "footer.html" . -}}
{{- end -}}
{{- define "right" -}}