{{- $page := .page }}
{{- with $page }}
  {{- $urlOpenapi := "" }}
  {{- if and (isset .Params "customopenapiurl") .Params.customOpenapiURL }}
    {{- $urlOpenapi = .Params.customOpenapiURL }}
  {{- else if and (isset .Site.Params "customopenapiurl") .Site.Params.customOpenapiURL }}
    {{- $urlOpenapi = .Site.Params.customOpenapiURL }}
  {{- else }}
    {{- $urlOpenapi = "js/swagger-ui/swagger-ui-bundle.js" | relURL }}
    {{- if not .Site.Params.disableAssetsBusting }}
      {{- $urlOpenapi = printf "%s?%