From 2f80ccf115f7c981212a85f25ddd70b04d6143e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Thu, 7 Oct 2021 21:17:17 +0200 Subject: [PATCH] include: add proper spacing around content to assert markdown will be processed #110 --- layouts/shortcodes/include.html | 1 + 1 file changed, 1 insertion(+) diff --git a/layouts/shortcodes/include.html b/layouts/shortcodes/include.html index fe8d506a10..5553ba9d86 100644 --- a/layouts/shortcodes/include.html +++ b/layouts/shortcodes/include.html @@ -1,5 +1,6 @@ {{- $file := .Get 0 }} {{- $showFirstHeading := .Get 1 | default true }} {{- if not $showFirstHeading }}
{{ end }} + {{ $file | readFile | safeHTML -}} {{- if not $showFirstHeading }}
{{ end }} \ No newline at end of file