Omphaloskepsis-2/layouts/series/list.html

37 lines
986 B
HTML
Raw Permalink Normal View History

2022-11-11 05:48:02 +00:00
{{ define "title" }}
{{ .Type | singularize }}: ‘{{ .Page.Title | plainify }}’ | {{ .Site.Title }}
{{ end }}
2023-08-07 22:23:46 +00:00
{{ define "main-class" }}--list layouts-series-list{{ end}}
2022-11-11 05:48:02 +00:00
{{ define "main-header" }}
<header class="site-content__header">
2023-07-01 03:16:59 +00:00
<h2 class="page-title">
2022-11-11 05:48:02 +00:00
{{- 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 }}
2023-07-01 03:16:59 +00:00
</h2>
2022-11-11 05:48:02 +00:00
{{ .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 }}