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/section.drafts.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/section.drafts.html')
-rw-r--r-- | themes/default/layouts/_default/section.drafts.html | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/themes/default/layouts/_default/section.drafts.html b/themes/default/layouts/_default/section.drafts.html index 0da61a3..4267a2a 100644 --- a/themes/default/layouts/_default/section.drafts.html +++ b/themes/default/layouts/_default/section.drafts.html @@ -16,7 +16,7 @@ </style> {{- end -}} -{{- define "middle" -}} +{{- define "header" -}} {{- $author := partial "function-authors-data.html" . -}} {{- $authors := where .Site.RegularPages "Section" $author.user -}} {{- $drafts := where .Site.RegularPages "Draft" true -}} @@ -31,13 +31,15 @@ "Title" "Drafts" "Icon" "arrow-left" "Subtitle" (partial "count-drafts.html" .) - "Href" (or (and (gt $paginator.PageNumber 1) ($paginator.Prev.URL | absURL)) "/") + "Href" (or (and (gt $paginator.PageNumber 1) ($paginator.Paginator.Prev.URL | absURL)) "/") ) -}} {{- partial "profile.html" . -}} +{{- end -}} - {{- range $paginator.Pages -}} +{{- define "middle" -}} + {{- range .Paginator.Pages -}} {{- partial "render-embed.html" . -}} {{- else -}} <footer> |