fix: template layouts resulting in missing singles

This commit is contained in:
Ben Goldsworthy 2025-07-09 23:55:07 +02:00
parent 628acae725
commit a2a1dd2a7c
No known key found for this signature in database
7 changed files with 44 additions and 26 deletions

22
layouts/section.html Normal file
View file

@ -0,0 +1,22 @@
{{ define "main-class" }}--section layouts-default-section{{ end }}
{{ define "main-header" }}
<header class="site-content__header">
<h2 class="page-title">{{ .Title | safeHTML }}.
{{ range .AlternativeOutputFormats -}}
<a href="{{ .RelPermalink }}">
<img class="feed-icon" src="{{ $.Site.Params.feedIcon }}">
</a>
{{ end }}
</h2>
{{ .Content }}
<nav class="page-header__minor-links">
{{ partial "years-list.html" . }}
</nav>
</header>
{{ end }}
{{ define "main-body" }}
{{ partial "items-grid.html" . }}
{{ end }}