🔒 🔧 Fixes #142 Optimize CDN service code

This commit is contained in:
elkan1788
2024-07-20 21:36:08 +08:00
parent 4e05bfb399
commit c5c1f03557
9 changed files with 102 additions and 43 deletions

View File

@@ -3,8 +3,8 @@
{{ $vendor := .Site.Params.vendors.plugins }}
{{ $router := .Scratch.Get "router" }}
{{ range $jsRes }}
{{ $pluginJS := partial "_funs/get_res.html" (dict "res" . "vendor" $vendor "router" $router) }}
<script type="text/javascript" src="{{ $pluginJS }}" defer></script>
{{ $pluginJS := partial "_funs/get_res.html" (dict "res" . "vendor" $vendor "router" $router) }}
<script type="text/javascript" src="{{ $pluginJS }}" crossorigin="anonymous" defer></script>
{{ end }}
<script class="next-config" data-name="main" type="application/json">{{ .Scratch.Get "config" }}</script>