hugo-theme-termlite/layouts/_default/single.html
Eryn Wells 4c689f0f5c Reduce the depth of the DOM and simplify the CSS a bit
Remove the main intermediate container. It wasn't acutally serving a purpose.
Remove some of the BEM-style classes that also weren't really doing anything.
2024-10-13 23:13:16 -07:00

20 lines
513 B
HTML

{{ define "main" }}
<main class="main--single">
<header class="page-header">
{{ partial "page_header.html" (dict "page" .) }}
</header>
{{ 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 }}