adds utility to put partials under page content
This commit is contained in:
1 parent
a145ee2e65
commit
0138e19dbf
3 files changed
+32
-2
No files matched your search
@@ -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 }}
|
||||
Reference in new issue
Block a user