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 }}
<!-- footer -->
{{ partial "essentials/footer.html" . }}
{{ partial "essentials/script.html" . }}
{{ end }}
<!-- script (always cache it) -->
{{ partialCached "essentials/script.html" . }}
</body>
</html>

View File

@ -1,7 +1,7 @@
{
"name": "hugoplate",
"description": "hugo tailwindcss boilerplate",
"version": "1.12.3",
"version": "1.12.4",
"license": "MIT",
"author": "zeon.studio",
"scripts": {
@ -22,12 +22,12 @@
"@fullhuman/postcss-purgecss": "^5.0.0",
"@tailwindcss/forms": "^0.5.7",
"@tailwindcss/typography": "^0.5.10",
"autoprefixer": "^10.4.17",
"postcss": "^8.4.35",
"autoprefixer": "^10.4.18",
"postcss": "^8.4.36",
"postcss-cli": "^11.0.0",
"prettier": "^3.2.5",
"prettier-plugin-go-template": "0.0.15",
"prettier-plugin-tailwindcss": "^0.5.11",
"prettier-plugin-tailwindcss": "^0.5.12",
"tailwind-bootstrap-grid": "^5.1.0",
"tailwindcss": "^3.4.1"
}