hugo-theme-relearn/layouts/shortcodes/include.html
Sören Weber fe7eb1d432
theme: wildspace
in shortcodes and shortcode output
2021-09-12 09:44:34 +02:00

6 lines
197 B
HTML

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