adds utility to put partials under page content

This commit is contained in:
Drew
2025-03-21 16:39:36 -06:00
parent a145ee2e65
commit 0138e19dbf
3 changed files with 32 additions and 2 deletions

View File

@ -1,12 +1,17 @@
{{ define "main" }}
<article class="single-default">
<header class="mb-4">{{ partial "article-wompum.html" . }}</header>
<div class="prose lg:prose-xl p-4 mx-auto">
<p class="font-bold text-4xl">{{ .Title }}</p>
{{ .Content }}
{{/* Check for additional partials to include */}}
{{ with .Params.include_partials }}
{{ range . }}
{{ partial . $ }}
{{ end }}
{{ end }}
</div>
</article>
{{ end }}