itd-site/themes/hugo-theme-relearn/layouts/shortcodes/include.html

7 lines
236 B
HTML
Raw Normal View History

2021-10-24 09:25:31 +00:00
{{- $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 }}