aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default/home.authors.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/_default/home.authors.html')
-rw-r--r--themes/default/layouts/_default/home.authors.html40
1 files changed, 40 insertions, 0 deletions
diff --git a/themes/default/layouts/_default/home.authors.html b/themes/default/layouts/_default/home.authors.html
new file mode 100644
index 0000000..af2a7c6
--- /dev/null
+++ b/themes/default/layouts/_default/home.authors.html
@@ -0,0 +1,40 @@
+{{ define "title" }}Authors — {{ end }}
+{{ define "description" }}This page contains a list of all authors — {{ end }}
+{{ define "styles" }}
+<style>
+ {{ partial "styles-navigator.html" (dict "Link" "/authors/") | safeCSS }}
+</style>
+{{ end }}
+
+{{ define "middle" }}
+
+ {{ partial "navigator-middle.html"
+ (dict
+ "Title" "Authors"
+ "Subtitle" (partial "count-authors.html" .)
+ "Icon" "arrow-left"
+ "IconLabel" "Back"
+ "Href" "/"
+ "Id" "back"
+ "Context" .
+ )
+ }}
+
+ {{ $authors := slice }}
+
+ {{- range $index, $data := where .Site.RegularPages ".Params.hidden" "!=" "true" -}}
+ {{ $authors = $authors | append $data.Type }}
+ {{- end -}}
+
+ {{ $authors = uniq $authors }}
+
+ {{ range $author := $authors }}
+ {{ $data := index $.Site.Data.authors $author | default "default" }}
+ {{ partial "author-card.html" (dict "Data" $data) }}
+ {{ end }}
+
+{{ end }}
+
+{{ define "right" }}
+ {{- partial "navigator-right-default.html" . -}}
+{{ end }}