{{/*
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" . }}
{{ partial "count.html" . }}{{ .Title }}
{{- if $kind }}