remove cache from footer

This commit is contained in:
Somrat
2024-03-18 15:38:49 +06:00
parent 8fe4c76335
commit ef2cc9c04a
2 changed files with 10 additions and 12 deletions

View File

@@ -38,13 +38,11 @@
{{ block "main" . }}{{ end }}
</main>
<!-- cache partial only in production -->
{{ if hugo.IsProduction }}
{{ partialCached "essentials/footer.html" . }}
{{ partialCached "essentials/script.html" . }}
{{ else }}
{{ partial "essentials/footer.html" . }}
{{ partial "essentials/script.html" . }}
{{ end }}
<!-- footer -->
{{ partial "essentials/footer.html" . }}
<!-- script (always cache it) -->
{{ partialCached "essentials/script.html" . }}
</body>
</html>