Use js generation from hugo instead of webpack
This commit is contained in:
parent
770c3bb397
commit
41dbe33ecb
|
@ -23,7 +23,15 @@
|
|||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="/assets/main.js"></script>
|
||||
|
||||
<!-- JavaScript -->
|
||||
{{ $main := resources.Get "js/main.js" }}
|
||||
{{ $menu := resources.Get "js/menu.js" }}
|
||||
{{ $prism := resources.Get "js/prism.js" }}
|
||||
{{ $theme := resources.Get "js/theme.js" }}
|
||||
{{ $js := slice $main $menu $prism $theme | resources.Concat "js/bundle.js" }}
|
||||
{{ $secureJS := $js | resources.Fingerprint "sha512" }}
|
||||
<script type="text/javascript" src="{{ $secureJS.Permalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>
|
||||
|
||||
{{- if .Site.GoogleAnalytics }}
|
||||
<script>
|
||||
|
|
Loading…
Reference in New Issue