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

7 lines
236 B
HTML
Raw Normal View History

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