Merge branch 'scripts' into cleanup

This commit is contained in:
Jens M. Sauer 2024-07-28 18:53:46 +02:00
commit ff3554c380
2 changed files with 3 additions and 20 deletions

View File

@ -6,18 +6,13 @@
This Hugo theme is licensed under the Creative Commons Attribution 3.0 License.
-->
<html>
{{ partial "head" . }}
<body class="is-preload">
<!-- Wrapper -->
<div id="wrapper" class="divided">
{{- block "main" . }}{{- end }}
<!-- Wrapper -->
</div>
{{ partial "scripts" . }}
</body>
</html>

View File

@ -1,15 +1,3 @@
{{ $jQuery := resources.Get "js/jquery.min.js" }}
{{ $scrollex := resources.Get "js/jquery.scrollex.min.js" }}
{{ $scrolly := resources.Get "js/jquery.scrolly.min.js" }}
{{ $browser := resources.Get "js/browser.min.js" }}
{{ $breakpoints := resources.Get "js/breakpoints.min.js" }}
{{ $util := resources.Get "js/util.js" }}
{{ $main := resources.Get "js/main.js" }}
{{ $demo := resources.Get "js/demo.js" }}
{{ $js := slice $jQuery $scrollex $scrolly $browser $breakpoints $util $main $demo | resources.Concat "js/bundle.js" | minify }}
<!-- Scripts -->
<script src='{{ $js.RelPermalink }}'></script>
{{ with resources.Match "js/*" | resources.Concat "js/bundle.js" | minify | fingerprint }}
<script src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script>
{{ end }}