Fingerprint JS as well
This commit is contained in:
parent
bc1123dcea
commit
09ab2aad5c
@ -20,6 +20,10 @@
|
||||
<title>{{ $title }}</title>
|
||||
<link rel="canonical" href="{{ .Permalink }}" />
|
||||
<script defer src="{{ relURL "js/jquery-3.6.3.min.js" }}"></script>
|
||||
<script defer src="{{ relURL "js/gallery.js" }}"></script>
|
||||
<script defer src="{{ (resources.Get "js/mails.js" ).RelPermalink }}"></script>
|
||||
{{ $galleryJs := resources.Get "js/gallery.js" }}
|
||||
{{ if hugo.IsProduction }}{{ $galleryJs = $galleryJs | minify | fingerprint }}{{ end }}
|
||||
<script defer src="{{ $galleryJs.RelPermalink }}"></script>
|
||||
{{ $mailsJs := resources.Get "js/mails.js" }}
|
||||
{{ if hugo.IsProduction }}{{ $mailsJs = $mailsJs | minify | fingerprint }}{{ end }}
|
||||
<script defer src="{{ $mailsJs.RelPermalink }}"></script>
|
||||
</head>
|
||||
|
Loading…
x
Reference in New Issue
Block a user