baseof.html: Do not bundle any JS

This commit is contained in:
Xavier Del Campo Romero 2023-01-03 04:14:05 +01:00
parent c2d2fcae83
commit f7f6d5def4
1 changed files with 0 additions and 10 deletions

View File

@ -31,16 +31,6 @@
{{ block "main" . -}}{{ end -}}
{{ block "footer" . -}}{{ end }}
{{ $main := resources.Get "js/main.js" -}}
{{ if .Site.Params.code_copy_button | default true -}}
{{ $codeCopy := resources.Get "js/code-copy.js" -}}
{{ $script := slice $main $codeCopy | resources.Concat "js/bundle.js" | minify | fingerprint -}}
<script src="{{ $script.Permalink }}" {{ printf "integrity=%q" $script.Data.Integrity | safeHTMLAttr }} crossorigin="anonymous"></script>
{{ else -}}
{{ $script := $main | minify | fingerprint -}}
<script src="{{ $script.Permalink }}" {{ printf "integrity=%q" $script.Data.Integrity | safeHTMLAttr }} crossorigin="anonymous"></script>
{{ end }}
{{- partial "analytics.html" . }}
{{- if templates.Exists "partials/extra-foot.html" -}}
{{ partial "extra-foot.html" . }}