From fc7845df7df63e65195818144031b2e1b5e05533 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Thu, 7 Oct 2021 21:19:07 +0200 Subject: [PATCH] include: amend #110 --- layouts/shortcodes/include.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/shortcodes/include.html b/layouts/shortcodes/include.html index 5553ba9d86..a7dc2bf482 100644 --- a/layouts/shortcodes/include.html +++ b/layouts/shortcodes/include.html @@ -2,5 +2,6 @@ {{- $showFirstHeading := .Get 1 | default true }} {{- if not $showFirstHeading }}
{{ end }} -{{ $file | readFile | safeHTML -}} +{{ $file | readFile | safeHTML }} + {{- if not $showFirstHeading }}
{{ end }} \ No newline at end of file