hugo-theme-termlite/layouts/_default/single.html
Eryn Wells 27c1a84ee4 Add an "after_content" blog to baseof.html
Populate it with links to CSS files in the page bundle.
2025-01-07 15:37:28 -08:00

28 lines
700 B
HTML

{{ define "main" }}
<main class="main--single">
{{ if .Title -}}
<header class="page-header">
{{ partial "page_header.html" (dict "page" .) }}
</header>
{{ end }}
{{ if .Params.tableOfContents | default .Params.renderTableofContents | default false -}}
<details>
<summary>{{ i18n "tableOfContents" }}</summary>
{{ .TableOfContents }}
</details>
{{- end }}
{{- .Content -}}
<footer class="page-footer">
{{ partial "page/footer.html" . }}
</footer>
</main>
{{ end }}
{{ define "after_content" }}
{{ range .Resources.Match "*.css" }}
<link rel="stylesheet" href="{{ .RelPermalink }}">
{{ end }}
{{ end }}