{{ define "main" }} {{ $communities := slice }} {{ range sort site.Data.community "name" "asec" }} {{ $communities = $communities | append . }} {{ end }} {{ $categories := slice }} {{ range .Site.Data.community }} {{ if .category }} {{ $categories = $categories | append .category }} {{ end }} {{ end }} {{ $categories = uniq $categories }} {{ range index $categories }}
{{ range where $communities "category" . }} {{ end }}{{ end }} {{ end }}