2021-10-15 18:13:14 -05:00
|
|
|
{{ define "main" }}
|
|
|
|
|
|
|
|
<h1>
|
2021-11-09 17:27:36 -06:00
|
|
|
{{ if eq .Data.Singular "tag" }}
|
|
|
|
{{ partial "icon.html" "tag" }}
|
|
|
|
{{ else if eq .Data.Singular "author" }}
|
|
|
|
{{ partial "icon.html" "user-circle" }}
|
2021-11-12 20:25:47 -06:00
|
|
|
{{ else if eq .Data.Singular "series" }}
|
|
|
|
{{ partial "icon.html" "files" }}
|
2021-11-09 17:27:36 -06:00
|
|
|
{{ else }}
|
|
|
|
{{ partial "icon.html" "filter" }}
|
|
|
|
{{ end }}
|
|
|
|
|
2021-11-20 19:05:56 -06:00
|
|
|
{{ .Title | markdownify }}
|
2021-11-09 17:27:36 -06:00
|
|
|
|
2021-10-15 18:13:14 -05:00
|
|
|
{{ if eq .Kind "term" }}
|
|
|
|
<span class="rss-link">
|
|
|
|
{{ with .OutputFormats.Get "rss" }}
|
2021-11-03 20:30:13 -05:00
|
|
|
<a href="{{ .Permalink }}" target="_blank" rel="noopener">{{ partial "icon.html" "rss-feed" }}</a>
|
2021-10-15 18:13:14 -05:00
|
|
|
{{ end }}
|
|
|
|
</span>
|
|
|
|
{{ end }}
|
|
|
|
</h1>
|
|
|
|
|
|
|
|
{{ if eq .Kind "taxonomy" }}
|
2021-11-13 17:04:10 -06:00
|
|
|
|
|
|
|
{{ if eq .Data.Singular "series" }}
|
|
|
|
<div class="series-taxonomy">
|
|
|
|
<ul>
|
|
|
|
{{ range .Pages }}
|
2021-11-14 18:57:23 -06:00
|
|
|
<li>{{ .Render "series-summary" }}</li>
|
2021-11-13 17:04:10 -06:00
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{{ else }}
|
|
|
|
<div class="taxonomy">
|
|
|
|
<ul>
|
|
|
|
{{ range .Pages }}
|
|
|
|
<li>
|
|
|
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2021-10-15 18:13:14 -05:00
|
|
|
|
|
|
|
{{ else }}
|
2021-11-12 20:25:47 -06:00
|
|
|
|
|
|
|
|
2021-11-12 23:14:13 -06:00
|
|
|
{{ with .Description }}
|
|
|
|
<div class="term-description">
|
|
|
|
<p>{{ . | markdownify }}</p>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
2021-11-12 20:25:47 -06:00
|
|
|
{{ $items := .Paginator.Pages }}
|
|
|
|
{{ if eq .Data.Singular "series" }}
|
|
|
|
{{ $items = .Paginator.Pages.Reverse }}
|
2021-10-15 18:13:14 -05:00
|
|
|
{{ end }}
|
2021-11-12 20:25:47 -06:00
|
|
|
<div class="page-list">
|
|
|
|
<ul>
|
|
|
|
{{ range $items }}
|
|
|
|
<li>{{ .Render "summary" }}</li>
|
|
|
|
{{ else }}
|
|
|
|
<div>
|
|
|
|
{{ i18n "no_posts" }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
2021-10-15 18:13:14 -05:00
|
|
|
|
|
|
|
{{ if gt .Paginator.TotalPages 1 }}
|
|
|
|
<div class="pagination">
|
|
|
|
{{ template "_internal/pagination.html" . }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ end }}
|