mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 09:43:06 +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 }}
|
{{- $file := .Get 0 }}
|
||||||
{{- $showFirstHeading := .Get 1 | default true }}
|
{{- $showFirstHeading := .Get 1 | default true }}
|
||||||
{{- if not $showFirstHeading }}<div class="include hide-first-heading">{{ end }}
|
{{- if not $showFirstHeading }}<div class="include hide-first-heading">{{ end }}
|
||||||
|
|
||||||
{{ $file | readFile | safeHTML -}}
|
{{ $file | readFile | safeHTML -}}
|
||||||
{{- if not $showFirstHeading }}</div>{{ end }}
|
{{- if not $showFirstHeading }}</div>{{ end }}
|
Loading…
Reference in a new issue