From 7f94652c143d78bdf71691744e2dd5bc7c6d2b44 Mon Sep 17 00:00:00 2001 From: Alexander Avery Date: Mon, 2 Sep 2024 12:11:52 -0400 Subject: [PATCH] include optional pre-content partial template --- layouts/_default/single.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 3e10ba2..082a91e 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -8,6 +8,10 @@ {{ .TableOfContents }} {{ end }} + {{ if templates.Exists "partials/pre-content.html" }} + {{ partial "pre-content.html" . }} + {{ end }} + {{ .Content }}