mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 12:13:19 -06:00
BBaoVanC
e62ccfd085
It didn't last very long. Speed isn't really a concern currently since my sites all generate in ~50ms (on my computer, at least).
53 lines
1.1 KiB
HTML
53 lines
1.1 KiB
HTML
{{ define "main" }}
|
|
{{ if or (eq .Kind "term") (eq .Kind "taxonomy") }}
|
|
<h1>
|
|
{{ partial "icon.html" "filter" }}
|
|
{{ i18n "filtering_for" .Title }}
|
|
{{ if eq .Kind "term" }}
|
|
<span class="rss-link">
|
|
{{ with .OutputFormats.Get "rss" }}
|
|
<a href="{{ .Permalink }}">{{ partial "icon.html" "rss" }}</a>
|
|
{{ end }}
|
|
</span>
|
|
{{ end }}
|
|
</h1>
|
|
{{ else }}
|
|
<h1>
|
|
{{ with .Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
|
{{ .Title | markdownify }}
|
|
<span class="rss-link">
|
|
{{ with .OutputFormats.Get "rss" }}
|
|
<a href="{{ .Permalink }}">{{ partial "icon.html" "rss" }}</a>
|
|
{{ end }}
|
|
</span>
|
|
</h1>
|
|
{{ end }}
|
|
|
|
{{ if eq .Kind "taxonomy" }}
|
|
<ul>
|
|
{{ range .Pages }}
|
|
<li>
|
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
|
|
{{ else }}
|
|
{{ range .Paginator.Pages }}
|
|
{{ .Render "summary" }}
|
|
{{ else }}
|
|
<div>
|
|
{{ i18n "no_posts" }}
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{ if gt .Paginator.TotalPages 1 }}
|
|
<div class="pagination">
|
|
{{ template "_internal/pagination.html" . }}
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|