mirror of
https://github.com/foo-dogsquared/hugo-theme-contentful.git
synced 2025-01-30 22:57:55 +00:00
Update terms page
This commit is contained in:
parent
fd6a6c7a38
commit
4c24ef2e96
@ -7,6 +7,15 @@ and this project adheres to https://semver.org/spec/v2.0.0.html[Semantic Version
|
||||
|
||||
|
||||
|
||||
== Unreleased
|
||||
|
||||
=== Changed
|
||||
|
||||
* Update the terms page.
|
||||
|
||||
|
||||
|
||||
|
||||
== [2.2.0] - 2020-11-06
|
||||
|
||||
|
||||
|
@ -6,18 +6,20 @@
|
||||
{{- range .Data.Terms }}
|
||||
{{- $pages := .Pages }}
|
||||
{{- if ge (len $pages) 1 }}
|
||||
<header id="{{ .Page.Title | urlize }}" 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 }}
|
||||
<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">
|
||||
<date datetime="{{ .PublishDate }}">{{ .PublishDate.Format "2006-01-02" }}</date>
|
||||
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
|
||||
<date datetime="{{ .PublishDate }}">{{ .PublishDate.Format "2006-01-02" }}</date>
|
||||
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
|
||||
</li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
{{- end }}
|
||||
</ul>
|
||||
</section>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user