portfoligor/layouts/_default/terms.html

21 lines
559 B
HTML
Raw Permalink Normal View History

{{ define "main" }}
<header>
2021-10-29 22:34:24 +02:00
<h2>{{.Title}}</h2>
</header>
<!-- "{{.Content}}" pulls from the markdown content of the corresponding
_index.md -->
{{.Content}}
<article class="terms">
<!-- Ranges throught categories, alphabetically, then displays the posts
title with the number of item in the category -->
{{ range .Data.Terms.Alphabetical }}
<article class="term">
<p>
<a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> ({{ .Count }})
</p>
</article>
{{ end }}
</article>
{{ end }}