hugo-theme-relearn/layouts/shortcodes/include.html

5 lines
235 B
HTML
Raw Normal View History

{{- $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 }}