2022-06-22 20:32:18 +02:00
|
|
|
{{- $context := .context }}
|
|
|
|
{{- $file := .file }}
|
2022-06-23 13:22:04 +02:00
|
|
|
{{- $hideFirstHeading := .hidefirstheading | default false }}
|
|
|
|
{{- if eq (printf "%T" $hideFirstHeading) "string" }}
|
|
|
|
{{- $hideFirstHeading = (eq $hideFirstHeading "true") }}
|
2022-06-22 20:32:18 +02:00
|
|
|
{{- end }}
|
2022-06-23 13:22:04 +02:00
|
|
|
{{- if $hideFirstHeading }}<div class="include hide-first-heading">{{ end }}
|
2022-06-22 20:32:18 +02:00
|
|
|
{{- with $context }}
|
|
|
|
|
|
|
|
{{ $file | readFile | safeHTML }}
|
|
|
|
|
2022-06-23 13:22:04 +02:00
|
|
|
{{- if $hideFirstHeading }}</div>{{ end }}
|
2022-06-22 20:32:18 +02:00
|
|
|
{{- end }}
|