hugo-theme-relearn/layouts/shortcodes/include.html
2023-07-27 16:54:06 +02:00

8 lines
No EOL
466 B
HTML

{{- if (.Get "showfirstheading") }}
{{- warnf "%q: UNSUPPORTED parameter 'showfirstheading' for shortcode 'include' found, use 'hidefirstheading' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/migration/#420-2022-06-23" .Page.File.Path }}
{{- end }}
{{- partial "shortcodes/include.html" (dict
"page" .Page
"file" (.Get "file" | default (.Get 0))
"hidefirstheading" (.Get "hidefirstheading" | default (.Get 1))
) }}