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

5 lines
No EOL
235 B
HTML

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