From f7f6d5def4bd571bf4d73ea14079b4a66b1da1a8 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Tue, 3 Jan 2023 04:14:05 +0100 Subject: [PATCH] baseof.html: Do not bundle any JS --- layouts/_default/baseof.html | 10 ---------- 1 file changed, 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 -}} - - {{ else -}} - {{ $script := $main | minify | fingerprint -}} - - {{ end }} - {{- partial "analytics.html" . }} {{- if templates.Exists "partials/extra-foot.html" -}} {{ partial "extra-foot.html" . }}