{{/* Every page that has pages beneath it, told apart by `params.kind`, which the exporter writes on each one: - no kind: a top-level section (Wikis, Blogs, ...), listing its containers; - `wiki`: the wiki's page tree, in the wiki's own order (`weight`); - `wiki_page`: a wiki page that has sub-pages -- a page first, so it is drawn exactly like one without; - `blog`, `ideation_blog`: posts, newest first; - `forum`: topics, newest first; - `file_library`: the file list, which is the body the exporter wrote, the files themselves sitting beside it; - `highlights`: the area's pages, in their order. */}} {{ define "main" }} {{- $kind := .Params.kind }} {{- if eq $kind "wiki_page" }} {{- partial "article.html" . }} {{- else }} {{- partial "crumbs.html" . }} {{- if not $kind }} {{- else if eq $kind "wiki" }} {{- else if in (slice "blog" "ideation_blog" "forum") $kind }} {{- partial "entries.html" .Pages.ByDate.Reverse }} {{- else if eq $kind "file_library" }}
{{- .Content }}
{{- else }} {{- with .Content }}
{{ . }}
{{ end }} {{- partial "entries.html" .Pages.ByWeight }} {{- end }} {{- end }} {{ end }}