mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-05-09 04:24:33 +08:00
include: add proper spacing around content to assert markdown will be processed #110
This commit is contained in:
parent
f04e13942e
commit
2f80ccf115
@ -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…
x
Reference in New Issue
Block a user