mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
swagger: fix compat warning #787
This commit is contained in:
parent
0cd82c9459
commit
8226ce02b6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue