Fingerprint JS as well

This commit is contained in:
Christian Wolf 2025-01-21 19:48:57 +01:00
parent bc1123dcea
commit 09ab2aad5c
2 changed files with 6 additions and 2 deletions

View File

@ -20,6 +20,10 @@
<title>{{ $title }}</title> <title>{{ $title }}</title>
<link rel="canonical" href="{{ .Permalink }}" /> <link rel="canonical" href="{{ .Permalink }}" />
<script defer src="{{ relURL "js/jquery-3.6.3.min.js" }}"></script> <script defer src="{{ relURL "js/jquery-3.6.3.min.js" }}"></script>
<script defer src="{{ relURL "js/gallery.js" }}"></script> {{ $galleryJs := resources.Get "js/gallery.js" }}
<script defer src="{{ (resources.Get "js/mails.js" ).RelPermalink }}"></script> {{ 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> </head>