aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-01-03 04:14:05 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-01-03 04:14:05 +0100
commitf7f6d5def4bd571bf4d73ea14079b4a66b1da1a8 (patch)
tree831ee314b24c3ab7b00b7b624e4ebe71a2334094
parentc2d2fcae83b0a8ec3bbe738a57d7c77fbae69d20 (diff)
baseof.html: Do not bundle any JS
-rw-r--r--layouts/_default/baseof.html10
1 files changed, 0 insertions, 10 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 7f09c90..dee3095 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -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" . }}