Skip to content

Commit

Permalink
swagger: fix compat warning #787
Browse files Browse the repository at this point in the history
  • Loading branch information
McShelby committed Feb 29, 2024
1 parent 0cd82c9 commit 8226ce0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/shortcodes/swagger.html
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 8226ce0

Please sign in to comment.