mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-22 10:31:39 +01:00
9257321547
- helps adding description to sub-sections, search, terms, archive pages
28 lines
642 B
HTML
28 lines
642 B
HTML
{{ define "main" }}
|
|
|
|
{{- if .Title }}
|
|
<header class="page-header">
|
|
<h1>{{ .Title }}</h1>
|
|
{{- if .Description }}
|
|
<div class="post-description">
|
|
{{ .Description }}
|
|
</div>
|
|
{{- end }}
|
|
</header>
|
|
{{- 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><strong><sup>{{ $count }}</sup></strong></sup> </a>
|
|
</li>
|
|
{{- end }}
|
|
{{- end }}
|
|
</ul>
|
|
|
|
{{ end }}{{/* end main */}}
|