include: add proper spacing around content to assert markdown will be processed #110

This commit is contained in:
Sören Weber 2021-10-07 21:17:17 +02:00
parent f04e13942e
commit 2f80ccf115
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589

View file

@ -1,5 +1,6 @@
{{- $file := .Get 0 }}
{{- $showFirstHeading := .Get 1 | default true }}
{{- if not $showFirstHeading }}<div class="include hide-first-heading">{{ end }}
{{ $file | readFile | safeHTML -}}
{{- if not $showFirstHeading }}</div>{{ end }}