Omphaloskepsis-2/layouts/series/list.html
2023-08-07 18:23:46 -04:00

36 lines
986 B
HTML

{{ define "title" }}
{{ .Type | singularize }}: ‘{{ .Page.Title | plainify }}’ | {{ .Site.Title }}
{{ end }}
{{ define "main-class" }}--list layouts-series-list{{ end}}
{{ define "main-header" }}
<header class="site-content__header">
<h2 class="page-title">
{{- if eq .Title "Series" -}}
{{- .Title | safeHTML }}&rsquo;
{{- else -}}
{{- .Type | singularize }}: <q>{{ .Title | safeHTML }}</q>
{{- end -}}.
{{ range .AlternativeOutputFormats -}}
<a href="{{ .RelPermalink }}">
<img class="feed-icon" src="{{ $.Site.Params.feedIcon }}">
</a>
{{ end }}
</h2>
{{ .Content }}
</header>
{{ end }}
{{ define "main-body" }}
{{ if eq .Title "Series" }}
<ul>
{{ range .Site.Taxonomies.series }}
<li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title | safeHTML }}</a></li>
{{ end }}
</ul>
{{ else }}
{{ partial "items-grid.html" . }}
{{ end }}
{{ end }}