mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 17:48:47 +08:00
swagger: fix compat warning #787
This commit is contained in:
parent
0cd82c9459
commit
8226ce02b6
@ -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 }}
|
||||
{{- if and (not $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 }}
|
||||
{{- 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
|
||||
"page" $page
|
||||
"src" .src
|
||||
|
Loading…
x
Reference in New Issue
Block a user