aboutsummaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
Diffstat (limited to 'themes')
-rw-r--r--themes/default/layouts/_default/index.html28
1 files changed, 21 insertions, 7 deletions
diff --git a/themes/default/layouts/_default/index.html b/themes/default/layouts/_default/index.html
index 3fc93ce..ec232ad 100644
--- a/themes/default/layouts/_default/index.html
+++ b/themes/default/layouts/_default/index.html
@@ -6,13 +6,27 @@
{{ define "middle" }}
- {{ partial "navigator-middle.html"
- (dict
- "Title" "Home"
- "Subtitle" (partial "count-total-messages.html" .)
- "Context" .
- )
- }}
+ {{- if gt .Paginator.PageNumber 1 -}}
+ {{- partial "navigator-middle.html"
+ (dict
+ "Context" .
+ "Href" "/"
+ "Icon" "arrow-left"
+ "IconLabel" "Back"
+ "Id" "back"
+ "Title" "Home"
+ "Subtitle" (partial "count-total-messages.html" .)
+ )
+ -}}
+ {{- else -}}
+ {{- partial "navigator-middle.html"
+ (dict
+ "Context" .
+ "Subtitle" (partial "count-total-messages.html" .)
+ "Title" "Home"
+ )
+ -}}
+ {{- end -}}
{{ range .Paginator.Pages }}
{{ .Render "summary" }}