mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
9f9e449be8
to avoid to be interpreted as indented code in some scenarios
30 lines
No EOL
841 B
HTML
30 lines
No EOL
841 B
HTML
|
|
<article>
|
|
<header class="headline">
|
|
</header>
|
|
|
|
{{- $title := partial "title.gotmpl" (dict "page" .) }}
|
|
<h1 id="{{ $title | plainify | anchorize }}">{{ $title }}</h1>
|
|
{{- .Content }}
|
|
{{- $lastCapital := "" }}
|
|
{{- $pages := partialCached "partials/_relearn/pagesTaxonomy.gotmpl" . .Path }}
|
|
{{- range $pages }}
|
|
{{- $capital := substr .Title 0 1 | upper }}
|
|
{{- if ne $lastCapital $capital }}
|
|
{{- if ne $lastCapital "" }}
|
|
</ul>
|
|
{{- end }}
|
|
<h2 id="{{ $capital | plainify | anchorize }}">{{ $capital }}</h2>
|
|
<ul class="columnize">
|
|
{{- end }}
|
|
{{- /* display terms of a taxonomy */}}
|
|
<li><a href="{{ partial "permalink.gotmpl" (dict "to" .Page) }}">{{ .Title }}</a> ({{ .Count }})</li>
|
|
{{- $lastCapital = $capital }}
|
|
{{- end }}
|
|
{{- if ne $lastCapital "" }}
|
|
</ul>
|
|
{{- end }}
|
|
|
|
<footer class="footline">
|
|
</footer>
|
|
</article> |