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.
|
This Hugo theme is licensed under the Creative Commons Attribution 3.0 License.
|
||||||
-->
|
-->
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
{{ partial "head" . }}
|
{{ partial "head" . }}
|
||||||
|
|
||||||
<body class="is-preload">
|
<body class="is-preload">
|
||||||
|
|
||||||
<!-- Wrapper -->
|
<!-- Wrapper -->
|
||||||
<div id="wrapper" class="divided">
|
<div id="wrapper" class="divided">
|
||||||
{{- block "main" . }}{{- end }}
|
{{- block "main" . }}{{- end }}
|
||||||
<!-- Wrapper -->
|
<!-- Wrapper -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ partial "scripts" . }}
|
{{ partial "scripts" . }}
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -1,15 +1,3 @@
|
|||||||
|
{{ with resources.Match "js/*" | resources.Concat "js/bundle.js" | minify | fingerprint }}
|
||||||
{{ $jQuery := resources.Get "js/jquery.min.js" }}
|
<script src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script>
|
||||||
{{ $scrollex := resources.Get "js/jquery.scrollex.min.js" }}
|
{{ end }}
|
||||||
{{ $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>
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user