diff options
author | tdro <tdro@noreply.example.com> | 2023-09-09 19:12:32 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-09-09 19:12:32 -0400 |
commit | 14fca032762fc1c92c3e6798aa1c628b1151d443 (patch) | |
tree | 8a0c52b33d5087d035cb777f6fe234a8cc276a5c /themes/default/layouts/_default/home.archives.html | |
parent | a625a207790a7d95357f8f16bb936e82464674d6 (diff) | |
download | canory-14fca032762fc1c92c3e6798aa1c628b1151d443.tar.gz canory-14fca032762fc1c92c3e6798aa1c628b1151d443.tar.bz2 canory-14fca032762fc1c92c3e6798aa1c628b1151d443.zip |
themes/default/layouts/_default/baseof: More granularity with header
Diffstat (limited to 'themes/default/layouts/_default/home.archives.html')
-rw-r--r-- | themes/default/layouts/_default/home.archives.html | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/themes/default/layouts/_default/home.archives.html b/themes/default/layouts/_default/home.archives.html index 7fb5a78..0a04d41 100644 --- a/themes/default/layouts/_default/home.archives.html +++ b/themes/default/layouts/_default/home.archives.html @@ -1,14 +1,13 @@ -{{ define "title" }}Message Archive — {{ end }} -{{ define "description" }}This page contains an archive of all messages — {{ end }} -{{ define "styles" }} +{{- define "title" -}}Message Archive — {{- end -}} +{{- define "description" -}}This page contains an archive of all messages — {{- end -}} +{{- define "styles" -}} <style> {{ partial "navigator.css.html" (dict "Link" "/archives/messages/") | safeCSS }} </style> -{{ end }} +{{- end -}} -{{ define "middle" }} - - {{ partial "navigator-middle.html" +{{- define "header" -}} + {{- partial "navigator-middle.html" (dict "Context" . "IconLabel" "Back" @@ -18,8 +17,10 @@ "Subtitle" (partial "count-total-messages.html" .) "Href" (or (and (gt .Paginator.PageNumber 1) (.Paginator.Prev.URL | absURL)) "/") ) - }} + -}} +{{- end -}} +{{- define "middle" -}} <archive-list> <item-list> {{ range (.Paginator.Pages.GroupByDate "2006") }} @@ -47,10 +48,9 @@ </item-list> </archive-list> - {{ partial "pagination.html" . }} - -{{ end }} + {{- partial "pagination.html" . -}} +{{- end -}} -{{ define "right" }} +{{- define "right" -}} {{- partial "navigator-right.html" . -}} -{{ end }} +{{- end -}} |