aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default/section.drafts.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/_default/section.drafts.html')
-rw-r--r--themes/default/layouts/_default/section.drafts.html32
1 files changed, 15 insertions, 17 deletions
diff --git a/themes/default/layouts/_default/section.drafts.html b/themes/default/layouts/_default/section.drafts.html
index ad862c4..b582893 100644
--- a/themes/default/layouts/_default/section.drafts.html
+++ b/themes/default/layouts/_default/section.drafts.html
@@ -1,4 +1,4 @@
-{{ define "styles" }}
+{{- define "styles" -}}
{{- $author := partial "function-authors-data.html" . -}}
{{- $author = $author.user -}}
<style>
@@ -14,11 +14,10 @@
text-decoration: underline;
}
</style>
-{{ end }}
+{{- end -}}
-{{ define "middle" }}
-
- {{ partial "navigator-middle.html"
+{{- define "middle" -}}
+ {{- partial "navigator-middle.html"
(dict
"Title" "Drafts"
"Subtitle" (partial "count-drafts.html" .)
@@ -28,29 +27,28 @@
"Id" "back"
"Context" .
)
- }}
+ -}}
- {{ partial "profile.html" . }}
+ {{- partial "profile.html" . -}}
{{- $author := partial "function-authors-data.html" . -}}
{{- $author = $author.user -}}
{{- $users := where .Site.RegularPages "Section" $author -}}
{{- $drafts := where .Site.RegularPages "Draft" true -}}
{{- $filteredPages := $users | intersect $drafts -}}
- {{- $paginator := .Paginate $filteredPages }}
+ {{- $paginator := .Paginate $filteredPages -}}
- {{ range $paginator.Pages }}
- {{ .Render "summary" }}
- {{ else }}
+ {{- range $paginator.Pages -}}
+ {{- partial "render-embed.html" . -}}
+ {{- else -}}
<footer>
<code>No drafts found!</code>
</footer>
- {{ end }}
-
- {{ partial "pagination.html" . }}
+ {{- end -}}
-{{ end }}
+ {{- partial "pagination.html" . -}}
+{{- end -}}
-{{ define "right" }}
+{{- define "right" -}}
{{- partial "navigator-right.html" . -}}
-{{ end }}
+{{- end -}}