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
1 changed files with 14 additions and 5 deletions

View File

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