mirror of
https://github.com/foo-dogsquared/hugo-theme-contentful.git
synced 2025-01-31 10:58:07 +00:00
059a6c489c
Also, this is enough for a minor release.
25 lines
646 B
HTML
25 lines
646 B
HTML
{{ define "main" }}
|
|
{{ .Content }}
|
|
|
|
<h1>{{ .Title }}</h1>
|
|
|
|
{{- range .Data.Terms }}
|
|
{{- $pages := (where .Pages "Params.hidden" "!=" true) }}
|
|
{{- if ge (len $pages) 1 }}
|
|
<header id="{{ .Page.Title | urlize }}" class="taxonomy__header">
|
|
<h2>{{ .Page.Title }}</h2>
|
|
<small>(<a href="{{ .Page.RelPermalink }}">Permalink</a>)</small>
|
|
</header>
|
|
<ul class="taxonomy__pages">
|
|
{{- range $pages }}
|
|
<li class="taxonomy__page">
|
|
<date datetime="{{ .Date }}">{{ .Date.Format "2006-01-02" }}</date>
|
|
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
|
|
</li>
|
|
{{- end }}
|
|
</ul>
|
|
{{- end }}
|
|
{{- end }}
|
|
|
|
{{ end }}
|