hello-friend-ng/layouts/partials/javascript.html
eekotenok1 f794572c7c layouts/partials: Move Google Analytics template into head
Necessary for proof of ownership via Google Search Console

Signed-off-by: eekotenok1 <eekotenok1@gmail.com>
2021-04-11 16:30:22 +03:00

11 lines
514 B
HTML

{{ $main := resources.Get "js/main.js" }}
{{ $menu := resources.Get "js/menu.js" }}
{{ $prism := resources.Get "js/prism.js" }}
{{ $secureJS := slice $main $menu $prism | resources.Concat "bundle.js" | resources.Minify | resources.Fingerprint "sha512" }}
<script type="text/javascript" src="{{ $secureJS.RelPermalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>
{{ range $val := $.Site.Params.customJS }}
{{ if gt (len $val) 0 }}
<script src="{{ $val }}"></script>
{{ end }}
{{ end }}