swagger: fix compat warning #787

This commit is contained in:
Sören Weber 2024-02-29 20:46:13 +01:00
parent 0cd82c9459
commit 8226ce02b6
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -1,9 +1,9 @@
{{ warnf "%q: DEPRECATED shortcode `swagger`found, use `openapi` instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/migration#5130" .context.File.Filename }}
{{- $page := .page }} {{- $page := .page }}
{{- if and (not $page) .context }} {{- if and (not $page) .context }}
{{- $page = .context }} {{- $page = .context }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'swagger' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/migration#5180" $page.File.Filename }} {{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'swagger' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/migration#5180" $page.File.Filename }}
{{- end }} {{- end }}
{{ warnf "%q: DEPRECATED shortcode `swagger` found, use `openapi` instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/migration#5130" $page.File.Filename }}
{{- partial "shortcodes/openapi.html" (dict {{- partial "shortcodes/openapi.html" (dict
"page" $page "page" $page
"src" .src "src" .src