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.html32
1 files changed, 15 insertions, 17 deletions
diff --git a/themes/default/layouts/_default/section.html b/themes/default/layouts/_default/section.html
index d678039..fc3ba74 100644
--- a/themes/default/layouts/_default/section.html
+++ b/themes/default/layouts/_default/section.html
@@ -1,4 +1,4 @@
-{{ define "styles" }}
+{{- define "styles" -}}
<style>
{{ partial "styles-navigator.html" (dict "Link" "/") | safeCSS }}
@@ -13,13 +13,12 @@
text-decoration: underline;
}
</style>
-{{ end }}
-
-{{ define "middle" }}
+{{- end -}}
+{{- define "middle" -}}
{{- $author := partial "function-authors-data.html" . -}}
- {{ partial "navigator-middle.html"
+ {{- partial "navigator-middle.html"
(dict
"Context" .
"IconLabel" "Back"
@@ -29,24 +28,23 @@
"Href" (or (and (gt .Paginator.PageNumber 1) (.Paginator.Prev.URL | absURL)) "/")
"Subtitle" (print (lang.FormatNumberCustom 0 .Paginator.TotalNumberOfElements) " " "Messages")
)
- }}
+ -}}
- {{ partial "author-section-picture.html" . }}
+ {{- partial "author-section-picture.html" . -}}
- {{ partial "profile.html" . }}
+ {{- partial "profile.html" . -}}
- {{ range .Paginator.Pages }}
- {{ .Render "summary" }}
- {{ else }}
+ {{- range .Paginator.Pages -}}
+ {{- partial "render-embed.html" . -}}
+ {{- else -}}
<footer>
<code>No messages found!</code>
</footer>
- {{ end }}
-
- {{ partial "pagination.html" . }}
+ {{- end -}}
-{{ end }}
+ {{- partial "pagination.html" . -}}
+{{- end -}}
-{{ define "right" }}
+{{- define "right" -}}
{{- partial "navigator-right.html" . -}}
-{{ end }}
+{{- end -}}