swagger: javascript code does not load in documentation #285

This commit is contained in:
Sören Weber 2022-06-23 20:01:43 +02:00
parent 3e489145e7
commit 88a769f2aa
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589

View file

@ -44,7 +44,7 @@
{{- else if isset .Site.Params "customswaggerurl" }} {{- else if isset .Site.Params "customswaggerurl" }}
<script src="{{ .Site.Params.customSwaggerURL }}"></script> <script src="{{ .Site.Params.customSwaggerURL }}"></script>
{{- else }} {{- else }}
<script src="{{ "/js/rapidoc-min.js" | relURL }}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script> <script src="{{ "js/rapidoc-min.js" | relURL }}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
{{- end }} {{- end }}
{{- if isset .Params "swaggerinitialize" }} {{- if isset .Params "swaggerinitialize" }}
{{- $.Scratch.Set "swaggerInitialize" .Params.swaggerInitialize }} {{- $.Scratch.Set "swaggerInitialize" .Params.swaggerInitialize }}