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

7 lines
197 B
HTML
Raw Normal View History

{{- $file := .Get 0 }}
{{- $showFirstHeading := .Get 1 | default true }}
<div class="include{{ if not $showFirstHeading }} hide-first-heading{{ end }}">
{{ $file | readFile | safeHTML }}
</div>