diff options
Diffstat (limited to 'themes/default/layouts/_default/section.html')
-rw-r--r-- | themes/default/layouts/_default/section.html | 60 |
1 files changed, 29 insertions, 31 deletions
diff --git a/themes/default/layouts/_default/section.html b/themes/default/layouts/_default/section.html index 9d32210..901ca1f 100644 --- a/themes/default/layouts/_default/section.html +++ b/themes/default/layouts/_default/section.html @@ -1,58 +1,56 @@ -{{ define "styles" }} +{{- define "styles" -}} <style> - {{ partial "styles-navigator.html" (dict "Link" "/") | safeCSS }} + {{ partial "navigator.css.html" (dict "Link" "/") | safeCSS }} tab-bar a[href="{{ .CurrentSection.Permalink }}"], + tab-bar a[href^="{{ .CurrentSection.Permalink }}#"], tab-bar a[href="{{ strings.TrimRight "/" .CurrentSection.Permalink }}"] { color: #111; color: var(--foreground); - display: inherit; font-weight: 700; text-decoration-color: #014cc6; text-decoration-color: var(--link); text-decoration: underline; + border-bottom: 2px solid var(--background); } </style> -{{ end }} - -{{ define "middle" }} - - {{- $messages := print - (lang.FormatNumberCustom 0 .Paginator.TotalNumberOfElements) - " " - "Messages" - -}} +{{- end -}} +{{- define "header" -}} {{- $author := partial "function-authors-data.html" . -}} - {{ partial "navigator-middle.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) " " "Total") ) - }} + -}} - {{ partial "author-section-picture.html" . }} + {{- partial "author-section-picture.html" . -}} - {{ partial "profile.html" . }} + {{- partial "profile.html" . -}} +{{- end -}} - {{ range .Paginator.Pages }} - {{ .Render "summary" }} - {{ else }} +{{- define "middle" -}} + {{- range .Paginator.Pages -}} + {{- partial "render-embed.html" . -}} + {{- else -}} <footer> - <code>No messages found!</code> + <code>No items found!</code> </footer> - {{ end }} - - {{ partial "pagination.html" . }} + {{- end -}} +{{- end -}} -{{ end }} +{{- define "footer" -}} + {{- partial "pagination.html" . -}} + {{- partial "footer.html" . -}} +{{- end -}} -{{ define "right" }} +{{- define "right" -}} {{- partial "navigator-right.html" . -}} -{{ end }} +{{- end -}} |