From 64b50b6403d876042fe9ad9d831f8eaff6f5ba07 Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Tue, 28 Feb 2023 15:23:27 +0000
Subject: [PATCH] uncache scripts #101
---
layouts/_default/baseof.html | 6 +-----
layouts/partials/scripts/bundle.html | 2 +-
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index db895a7..db9e847 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -38,11 +38,7 @@
{{ end }}
{{- partialCached "footer" . -}}
{{- partialCached "sprites" . -}}
- {{- with .Translations }}
- {{- partial "scripts/bundle" $context -}}
- {{- else }}
- {{- partialCached "scripts/bundle" . -}}
- {{- end }}
+ {{- partial "scripts/bundle" . -}}
{{- partial "scripts/other" . -}}
</body>
</html>
diff --git a/layouts/partials/scripts/bundle.html b/layouts/partials/scripts/bundle.html
index 05a955e..7ffcf8d 100644
--- a/layouts/partials/scripts/bundle.html
+++ b/layouts/partials/scripts/bundle.html
@@ -13,7 +13,7 @@
{{- partial "scripts/getJsBundle" (dict "scripts" (slice $variables $functions $code $mode $main $custom) "slug" "bundle" "inline" true) }}
-{{- partialCached "scripts/search" . -}}
+{{- partial "scripts/search" . -}}
{{- partialCached "hooks/scripts" . -}}
{{- with site.Params.customJS }}
--
Gitblit v1.10.0