switching to RelPermalink instead of Permalink for JS and CSS files
This commit is contained in:
parent
966286b96e
commit
cdf1cb3ac0
2 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
{{ $prism := resources.Get "js/prism.js" }}
|
||||
{{ $theme := resources.Get "js/theme.js" }}
|
||||
{{ $secureJS := slice $main $menu $prism $theme | resources.Concat "bundle.js" | resources.Minify | resources.Fingerprint "sha512" }}
|
||||
<script type="text/javascript" src="{{ $secureJS.Permalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>
|
||||
<script type="text/javascript" src="{{ $secureJS.RelPermalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>
|
||||
|
||||
{{- if .Site.GoogleAnalytics }}
|
||||
<script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue