{{/* The front page, drawn one of two ways -- `homeLayout` under `[params]` in `hugo.toml`: "cards", or anything else for the plain list. The list. An export of one community: every top-level section (Wikis, Blogs, ...), each with its containers beneath it and how much each holds. An export of several communities is written community first, and the front page follows: under "Communities", each community -- and the content in no community, last -- with how much it holds; its own page lists the rest. The cards. One community: a card per section, with its containers. Several: a card per community with everything in it, each container marked with what it is. A Highlights area is titled after its community, which on the community's own card would only repeat the card's title: there it is "Highlights". Both come in the exporter's order, set by `weight`. */}} {{ define "main" }} {{- $communities := where site.Sections "Params.kind" "in" (slice "community" "no_community") }} {{- if eq site.Params.homeLayout "cards" }} {{- $what := dict "wiki" "Wiki" "blog" "Blog" "ideation_blog" "Ideation blog" "forum" "Forum" "file_library" "Library" }}
{{- if $communities }} {{- range $communities.ByWeight }}

{{ .Title }}

{{ partial "count.html" . }}

{{- end }} {{- else }} {{- range site.Sections.ByWeight }}

{{ .Title }}

{{- end }} {{- end }}
{{- else if $communities }}

Communities

{{- else }} {{- partial "overview.html" . }} {{- end }} {{ end }}