blob: 7451e100a486a69872667ce78c14195eb70f2ade (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
{{- define "styles" -}}
<style>
{{ partial "styles-navigator.html" (dict "Link" "/tags/") | safeCSS }}
</style>
{{- end -}}
{{- define "middle" -}}
{{- partial "navigator-middle.html"
(dict
"Context" .
"IconLabel" "Back"
"Id" "back"
"Icon" "arrow-left"
"Title" (print "#" .Title)
"Subtitle" (print (lang.FormatNumberCustom 0 (len .Data.Pages)) " " "Messages")
"Href" (or (and (gt .Paginator.PageNumber 1) (.Paginator.Prev.URL | absURL)) "/")
)
-}}
{{- range .Paginator.Pages -}}
{{- partial "render-embed.html" . -}}
{{- end -}}
{{- partial "pagination.html" . -}}
{{- end -}}
{{- define "right" -}}
{{- partial "navigator-right.html" . -}}
{{- end -}}
|