Update terms page

This commit is contained in:
Gabriel Arazas 2022-05-13 15:03:50 +08:00
parent fd6a6c7a38
commit 4c24ef2e96
2 changed files with 21 additions and 10 deletions

View File

@ -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 == [2.2.0] - 2020-11-06

View File

@ -6,18 +6,20 @@
{{- range .Data.Terms }} {{- range .Data.Terms }}
{{- $pages := .Pages }} {{- $pages := .Pages }}
{{- if ge (len $pages) 1 }} {{- if ge (len $pages) 1 }}
<header id="{{ .Page.Title | urlize }}" class="taxonomy__header"> <section id="{{ .Page.Title | urlize }}">
<h2>{{ .Page.Title }}</h2> <header class="taxonomy__header">
<small>(<a href="{{ .Page.RelPermalink }}">{{ i18n "permalink" | default "Permalink" }}</a>)</small> <h2>{{ .Page.Title }}</h2>
</header> <small>(<a href="{{ .Page.RelPermalink }}">{{ i18n "permalink" | default "Permalink" }}</a>)</small>
<ul class="taxonomy__pages"> </header>
{{- range $pages }} <ul class="taxonomy__pages">
{{- range $pages }}
<li class="taxonomy__page"> <li class="taxonomy__page">
<date datetime="{{ .PublishDate }}">{{ .PublishDate.Format "2006-01-02" }}</date> <date datetime="{{ .PublishDate }}">{{ .PublishDate.Format "2006-01-02" }}</date>
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a> <a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
</li> </li>
{{- end }} {{- end }}
</ul> </ul>
</section>
{{- end }} {{- end }}
{{- end }} {{- end }}