mirror of
https://github.com/thomasjsn/hugo-theme-hello-friend.git
synced 2024-12-26 15:57:38 +01:00
19 lines
480 B
HTML
19 lines
480 B
HTML
|
{{ define "main" }}
|
||
|
|
||
|
<div class="archive">
|
||
|
<h1>{{ .Title }}</h1>
|
||
|
<ul>
|
||
|
{{ $type := .Type }}
|
||
|
{{ range $key, $value := .Data.Terms.Alphabetical }}
|
||
|
{{ $name := .Name }}
|
||
|
{{ $count := .Count }}
|
||
|
{{ with $.Site.GetPage (printf "/%s/%s" $type $name) }}
|
||
|
<h3 class="archive__post-title">
|
||
|
<a href="{{ .Permalink }}">{{ .Name }} ({{ $count }})</a>
|
||
|
</h3>
|
||
|
{{ end }}
|
||
|
{{ end }}
|
||
|
</ul>
|
||
|
</div>
|
||
|
{{ end }}
|