blob: 31d49a09a40bd222fa05df55a40d78fcf13c663f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{{ define "main" }}
<main>
<div class="row row-eq-height">
{{ $sectionName := .Title | lower }}
{{ range $key, $taxonomy := .Site.Taxonomies.categories.ByCount }}
<div class="col-md-6 mt-3">
<h2>
<a href="/categories/{{ .Name }}/">
{{ .Name }}
</a>
</h2>
<div class="border rounded p-2">
{{ range where $taxonomy.Pages.ByDate "Section" $sectionName }}
<h4 class="ml-2">
<a href="{{ .Permalink }}">
{{ .Title }}
</a>
</h4>
<p class="ml-4">{{ .Description }}</p>
{{ end }}
</div>
</div>
{{ end }}
</div>
</main>
{{ partial "footer.html" . }}
{{ end }}
|