aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default/section.drafts.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-06-10 18:16:04 -0400
committertdro <tdro@noreply.example.com>2023-06-10 18:16:04 -0400
commit77f6dfc5b8d98b2d47788988eb4bcf7449f8f782 (patch)
tree584ff99e325cd0585fd63614b111b41a7b18e425 /themes/default/layouts/_default/section.drafts.html
parent067038f579efeae47e6a9560313f0e948996c553 (diff)
downloadcanory-77f6dfc5b8d98b2d47788988eb4bcf7449f8f782.tar.gz
canory-77f6dfc5b8d98b2d47788988eb4bcf7449f8f782.tar.bz2
canory-77f6dfc5b8d98b2d47788988eb4bcf7449f8f782.zip
themes/default/layouts/partials/count: Cleanup counters
Diffstat (limited to 'themes/default/layouts/_default/section.drafts.html')
-rw-r--r--themes/default/layouts/_default/section.drafts.html5
1 files changed, 2 insertions, 3 deletions
diff --git a/themes/default/layouts/_default/section.drafts.html b/themes/default/layouts/_default/section.drafts.html
index b582893..468fd7e 100644
--- a/themes/default/layouts/_default/section.drafts.html
+++ b/themes/default/layouts/_default/section.drafts.html
@@ -32,10 +32,9 @@
{{- partial "profile.html" . -}}
{{- $author := partial "function-authors-data.html" . -}}
- {{- $author = $author.user -}}
- {{- $users := where .Site.RegularPages "Section" $author -}}
+ {{- $authors := where .Site.RegularPages "Section" $author.user -}}
{{- $drafts := where .Site.RegularPages "Draft" true -}}
- {{- $filteredPages := $users | intersect $drafts -}}
+ {{- $filteredPages := $authors | intersect $drafts -}}
{{- $paginator := .Paginate $filteredPages -}}
{{- range $paginator.Pages -}}