hugo-theme-more-contentful/layouts/_default/terms.html

27 lines
706 B
HTML
Raw Normal View History

2020-11-06 12:32:35 +00:00
{{ define "main" }}
{{ .Content }}
<h1>{{ .Title }}</h1>
{{- range .Data.Terms }}
{{- $pages := .Pages }}
{{- if ge (len $pages) 1 }}
<section id="{{ .Page.Title | urlize }}">
<header class="taxonomy__header">
<h2>{{ .Page.Title }}</h2>
<small>(<a href="{{ .Page.RelPermalink }}">{{ i18n "permalink" | default "Permalink" }}</a>)</small>
</header>
<ul class="taxonomy__pages">
{{- range $pages }}
<li class="taxonomy__page">
2020-11-06 12:32:35 +00:00
<date datetime="{{ .PublishDate }}">{{ .PublishDate.Format "2006-01-02" }}</date>
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
</li>
{{- end }}
</ul>
</section>
2020-11-06 12:32:35 +00:00
{{- end }}
{{- end }}
{{ end }}