blob: d69dee72ffc2dc65db1e6877a3583e64131456e8 (
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
29
30
31
32
33
34
|
{{ define "main" }}
{{ $heading := (partial "basic-tags" .).heading }}
<!-- Collect pages using the "search" layout -->
{{ $searchPages := where .Site.RegularPages "Layout" "eq" "search" }}
<main class="list">
<!-- Display search form before listing posts -->
{{ if and .Site.Params.Search.enable (gt (len $searchPages) 0) (eq .Kind "section") }}
{{ partialCached "search-form" . .Layout }}
{{ end }}
<h1>{{ $heading }}</h1>
{{ if eq .Kind "taxonomy" }}
{{ if eq .Type "categories" }}
{{ partialCached "categories" . }}
{{ else if eq .Type "tags" }}
{{ partialCached "tags" . }}
{{ end }}
{{ else }}
{{ partial "post-list" . }}
{{ partial "pagination" . }}
{{ partialCached "tag-list" . }}
{{ end }}
</main>
{{ end }}
|