Moving scripts to partial. Adding cache buser to script file. Generate cache buster from /public and not /theme since theme path is not known.
This commit is contained in:
parent
2074a3a530
commit
fbae824150
1 changed files with 7 additions and 6 deletions
3
layouts/partials/scripts.html
Normal file
3
layouts/partials/scripts.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{{ if .Site.Params.jquery }}<script src="/js/jquery.min.js"></script>{{ end }}
|
||||
{{ if and .Site.Params.jquery .Site.Params.slicknav }}<script src="/js/jquery.slicknav.min.js"></script>{{ end }}
|
||||
{{ if .Site.Params.jquery }}<script src="/js/script.js?{{ readFile "/public/js/script.js" | sha1}}"></script>{{ end }}
|
||||
Loading…
Reference in a new issue