mirror of
https://github.com/msfjarvis/msfjarvis.dev.git
synced 2024-06-03 04:18:56 +05:30
Use js generation from hugo instead of webpack
This commit is contained in:
parent
770c3bb397
commit
41dbe33ecb
|
@ -23,7 +23,15 @@
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</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 }}
|
{{- if .Site.GoogleAnalytics }}
|
||||||
<script>
|
<script>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user