mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
2e9aef08a5
- known as terms - ex Tags, Categories
23 lines
547 B
HTML
23 lines
547 B
HTML
{{ define "main" }}
|
|
{{- $scope := .Site }}
|
|
{{- if .Title }}
|
|
<header class="page-header">
|
|
<h1>{{ .Title }}</h1>
|
|
</header>
|
|
{{ $scope = . }}
|
|
{{ end }}
|
|
|
|
<ul class="terms-tags">
|
|
{{ $type := .Type }}
|
|
{{ range $key, $value := .Data.Terms.Alphabetical }}
|
|
{{ $name := .Name }}
|
|
{{ $count := .Count }}
|
|
{{ with $.Site.GetPage (printf "/%s/%s" $type $name) }}
|
|
<li>
|
|
<a href="{{ .Permalink }}">{{ .Name }} <sup><b><sup>{{ $count }}</sup></b></sup> </a>
|
|
</li>
|
|
{{ end }}
|
|
{{ end }}
|
|
</ul>
|
|
|
|
{{ end }}{{/* end main */}} |