mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 15:57:57 +00:00
include: add proper spacing around content to assert markdown will be processed #110
This commit is contained in:
parent
f04e13942e
commit
2f80ccf115
1 changed files with 1 additions and 0 deletions
|
@ -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 }}
|
Loading…
Reference in a new issue