aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default/section.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/_default/section.html')
-rw-r--r--themes/default/layouts/_default/section.html16
1 files changed, 5 insertions, 11 deletions
diff --git a/themes/default/layouts/_default/section.html b/themes/default/layouts/_default/section.html
index 9d32210..d678039 100644
--- a/themes/default/layouts/_default/section.html
+++ b/themes/default/layouts/_default/section.html
@@ -17,23 +17,17 @@
{{ define "middle" }}
- {{- $messages := print
- (lang.FormatNumberCustom 0 .Paginator.TotalNumberOfElements)
- " "
- "Messages"
- -}}
-
{{- $author := partial "function-authors-data.html" . -}}
{{ partial "navigator-middle.html"
(dict
- "Title" $author.name
- "Subtitle" $messages
- "Icon" "arrow-left"
+ "Context" .
"IconLabel" "Back"
- "Href" "/"
"Id" "back"
- "Context" .
+ "Title" $author.name
+ "Icon" "arrow-left"
+ "Href" (or (and (gt .Paginator.PageNumber 1) (.Paginator.Prev.URL | absURL)) "/")
+ "Subtitle" (print (lang.FormatNumberCustom 0 .Paginator.TotalNumberOfElements) " " "Messages")
)
}}