mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 15:57:57 +00:00
64b4ad751e
- description - title - tags
37 lines
No EOL
1.3 KiB
HTML
37 lines
No EOL
1.3 KiB
HTML
{{- partialCached "page-meta.hugo" . .RelPermalink }}
|
|
{{- partial "header.html" . }}
|
|
<article>
|
|
<header class="headline">
|
|
</header>
|
|
{{- $page := . }}
|
|
|
|
{{- $title := partial "pageHelper/title.hugo" (dict "page" .) }}
|
|
<h1 id="{{ $title | plainify | anchorize }}">{{ $title }}</h1>
|
|
{{- .Content }}
|
|
{{- $lastCapital := "" }}
|
|
{{- $pages := partialCached "partials/pageHelper/termPages.html" . . }}
|
|
{{- 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 pages of a term */}}
|
|
{{- $breadcrumb := "" }}
|
|
{{- if (ne .Page.Site.Params.disableTermBreadcrumbs true) }}
|
|
{{- $breadcrumb = partial "breadcrumbs.html" (dict "page" .Page "dirOnly" true) | plainify | htmlUnescape | chomp }}
|
|
{{- end }}
|
|
<li><a href="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" .Page) }}">{{ .Title }}</a>{{ with $breadcrumb }}<div class="breadcrumbs highlightable" title="{{ . }}">{{ . }}</div>{{ end }}</li>
|
|
{{- $lastCapital = $capital }}
|
|
{{- end }}
|
|
{{- if ne $lastCapital "" }}
|
|
</ul>
|
|
{{- end }}
|
|
|
|
<footer class="footline">
|
|
</footer>
|
|
</article>
|
|
{{- partial "footer.html" . }} |