Merge branch 'scripts' into cleanup
This commit is contained in:
commit
ff3554c380
@ -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>
|
||||
|
||||
@ -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 }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user