54 lines
1.3 KiB
HTML
54 lines
1.3 KiB
HTML
{{ $.Scratch.Set "curLetter" "" }}
|
|
{{ $offset := 1 }}
|
|
{{ partial "header" . }}
|
|
|
|
{{ partial "bigimg" . }}
|
|
<a id="top"></a>
|
|
<main class="list">
|
|
|
|
<header>
|
|
<h1>
|
|
<svg class='icon'><use xlink:href="#{{ .Params.icontag }}"></use></svg> {{ .Title }}
|
|
</h1>
|
|
</header>
|
|
|
|
<hr/>
|
|
|
|
{{ with .Content }}
|
|
<article>
|
|
{{ . }}
|
|
</article>
|
|
{{ end }}
|
|
|
|
<article>
|
|
<div style="display: grid; grid-template-columns: repeat(auto-fill, minmax(10em, 1fr)); column-gap: 1em; row-gap: 1.2em;">
|
|
{{range $name, $taxonomy := .Site.Taxonomies.tags}}
|
|
{{ $cnt := .Count }}
|
|
{{ with $.Site.GetPage (printf "/tags/%s" $name) }}
|
|
{{ $firstChar := substr $name 0 1 | upper }}
|
|
{{ $curLetter := $.Scratch.Get "curLetter" }}
|
|
|
|
{{ if ne $firstChar $curLetter }}
|
|
{{ if ne $curLetter "" }}
|
|
</ul>
|
|
</div>
|
|
{{ end }}
|
|
{{ $.Scratch.Set "curLetter" $firstChar }}
|
|
<div style="margin-block-start: 0.6rem;">
|
|
<h3 style="border-bottom: 1px solid black;">{{ $firstChar }}</h3>
|
|
<ul style="padding-left: 1em">
|
|
{{ end }}
|
|
|
|
{{ if gt $cnt $offset }}
|
|
<li>
|
|
<a href={{ .RelPermalink }} title="All pages with tag {{$name}}">{{.Title}}</a> ({{$cnt}})
|
|
</li>
|
|
{{ end }}
|
|
{{end}}
|
|
{{end}}
|
|
</div>
|
|
</article>
|
|
</main>
|
|
|
|
{{ partial "footer" . }}
|