This commit is contained in:
BBaoVanC 2021-10-06 09:36:04 -05:00
parent 29414e01ac
commit 0238423f1e
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A

View File

@ -1,13 +1,20 @@
{{ define "main" }} {{ define "main" }}
{{ if .Data.Singular }} {{ if or (eq .Kind "term") (eq .Kind "taxonomy") }}
<h3>Filtering for "{{ .Title }}"</h3> <h1>Filtering for "{{ .Title }}"</h1>
<small>
<a href="{{ . | relURL }}">Remove filter</a>
</small>
{{ else }} {{ else }}
<h1>{{ .Title | markdownify }}</h1> <h1>{{ .Title | markdownify }}</h1>
{{ end }} {{ end }}
{{ if eq .Kind "taxonomy" }}
<ul>
{{ range .Pages }}
<li>
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
</li>
{{ end }}
</ul>
{{ else }}
{{ range .Paginator.Pages }} {{ range .Paginator.Pages }}
<div class="post"> <div class="post">
<h2 class="post-title"> <h2 class="post-title">
@ -65,3 +72,5 @@
</div> </div>
{{ end }} {{ end }}
{{ end }}