mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 15:57:57 +00:00
13 lines
No EOL
422 B
HTML
13 lines
No EOL
422 B
HTML
{{- $context := .context }}
|
|
{{- $file := .file }}
|
|
{{- $hideFirstHeading := .hidefirstheading | default false }}
|
|
{{- if eq (printf "%T" $hideFirstHeading) "string" }}
|
|
{{- $hideFirstHeading = (eq $hideFirstHeading "true") }}
|
|
{{- end }}
|
|
{{- if $hideFirstHeading }}<div class="include hide-first-heading">{{ end }}
|
|
{{- with $context }}
|
|
|
|
{{ $file | readFile | safeHTML }}
|
|
|
|
{{- if $hideFirstHeading }}</div>{{ end }}
|
|
{{- end }} |