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.html45
1 files changed, 45 insertions, 0 deletions
diff --git a/themes/default/layouts/_default/section.html b/themes/default/layouts/_default/section.html
new file mode 100644
index 0000000..e0b607c
--- /dev/null
+++ b/themes/default/layouts/_default/section.html
@@ -0,0 +1,45 @@
+{{ define "styles" }}
+<style>
+ {{ partial "styles-navigator.html" (dict "Link" "/") | safeCSS }}
+
+ tab-list a[href="/{{ partial "author-user.html" . }}"] {
+ display: inherit;
+ font-weight: 700;
+ text-decoration: underline;
+ text-decoration-color: #014cc6;
+ text-decoration-color: var(--link);
+ }
+</style>
+{{ end }}
+
+{{ define "middle" }}
+
+ {{- $messages := print (lang.FormatNumberCustom 0 .Paginator.TotalNumberOfElements) " " "Messages" -}}
+
+ {{ partial "navigator-middle.html"
+ (dict
+ "Title" (partial "author-name.html" .)
+ "Subtitle" $messages
+ "Icon" "arrow-left"
+ "IconLabel" "Back"
+ "Href" "/"
+ "Id" "back"
+ "Context" .
+ )
+ }}
+
+ {{ partial "profile.html" . }}
+
+ {{ range where .Paginator.Pages ".Params.hidden" "ne" "true" }}
+ {{ .Render "summary" }}
+ {{ end }}
+
+ {{ partial "pagination.html" . }}
+
+{{ end }}
+
+{{ define "right" }}
+ {{ range first 1 .Paginator.Pages }}
+ {{- partial "navigator-right.html" . -}}
+ {{ end }}
+{{ end }}