include: fix whitespacing in codefences #723

This commit is contained in:
Sören Weber 2023-11-16 22:50:35 +01:00
parent 0f6620a9ff
commit 55614246d9
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -9,11 +9,11 @@
{{- $hideFirstHeading = (eq $hideFirstHeading "true") }} {{- $hideFirstHeading = (eq $hideFirstHeading "true") }}
{{- end }} {{- end }}
{{- if and (gt (len (trim $file " ")) 0) (fileExists $file) }} {{- if and (gt (len (trim $file " ")) 0) (fileExists $file) }}
{{- if $hideFirstHeading }}<div class="include hide-first-heading">{{ end }} {{- if $hideFirstHeading }}<div class="include hide-first-heading">
{{ end }}
{{- with $page }} {{- with $page }}
{{- $file | readFile | safeHTML }}
{{ $file | readFile | safeHTML }}
{{- end }} {{- end }}
{{- if $hideFirstHeading }}</div>{{ end }} {{- if $hideFirstHeading }}</div>{{ end }}
{{- end }} {{- end }}