bobatheme/layouts/_default/list.html

53 lines
1.1 KiB
HTML
Raw Normal View History

2021-09-26 15:02:47 -05:00
{{ define "main" }}
2021-10-06 09:36:04 -05:00
{{ if or (eq .Kind "term") (eq .Kind "taxonomy") }}
2021-10-06 09:52:06 -05:00
<h1>
{{ partialCached "icon.html" "filter" "filter" }}
2021-10-06 09:52:06 -05:00
Filtering for "{{ .Title }}"
{{ if eq .Kind "term" }}
<span class="rss-link">
{{ with .OutputFormats.Get "rss" }}
<a href="{{ .Permalink }}">{{ partialCached "icon.html" "rss" "rss" }}</a>
2021-10-06 09:52:06 -05:00
{{ end }}
</span>
{{ end }}
</h1>
2021-09-26 15:02:47 -05:00
{{ else }}
2021-10-06 09:52:06 -05:00
<h1>
{{ with .Params.icon }}{{ partialCached "icon.html" . . }}{{ end }}
2021-10-06 09:52:06 -05:00
{{ .Title | markdownify }}
<span class="rss-link">
{{ with .OutputFormats.Get "rss" }}
<a href="{{ .Permalink }}">{{ partialCached "icon.html" "rss" "rss" }}</a>
2021-10-06 09:52:06 -05:00
{{ end }}
</span>
</h1>
2021-09-26 15:02:47 -05:00
{{ end }}
2021-10-02 16:22:52 -05:00
2021-10-06 09:36:04 -05:00
{{ if eq .Kind "taxonomy" }}
<ul>
{{ range .Pages }}
<li>
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
</li>
{{ end }}
</ul>
{{ else }}
2021-10-02 19:26:33 -05:00
{{ range .Paginator.Pages }}
2021-10-09 15:16:24 -05:00
{{ .Render "summary" }}
2021-10-02 16:22:52 -05:00
{{ else }}
<div>
No posts here!
</div>
2021-09-26 15:02:47 -05:00
{{ end }}
2021-10-02 16:22:52 -05:00
{{ if gt .Paginator.TotalPages 1 }}
2021-10-02 19:26:33 -05:00
<div class="pagination">
{{ template "_internal/pagination.html" . }}
</div>
{{ end }}
2021-10-02 19:26:33 -05:00
{{ end }}
2021-10-06 09:36:04 -05:00
{{ end }}