2023-05-23 21:06:53 +02:00
|
|
|
{{ 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 }}
|
|
|
|
<h3>{{ . | title }}</h3>
|
|
|
|
<blockquote>
|
|
|
|
{{ range where $communities "category" . }}
|
|
|
|
<div>
|
|
|
|
{{ if .url }}
|
2023-06-03 22:52:47 +02:00
|
|
|
<h4><a href="{{ .url }}">{{ .name }}</a></h4>
|
2023-05-23 21:06:53 +02:00
|
|
|
{{ else }}
|
|
|
|
<h4>{{ .name }}</h4>
|
|
|
|
{{ end }}
|
|
|
|
<p>{{ .description }}</p>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</blockquote>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ end }}
|