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 }} {{ block "main" . }}{{ end }}
</main> </main>
<!-- cache partial only in production --> <!-- footer -->
{{ if hugo.IsProduction }}
{{ partialCached "essentials/footer.html" . }}
{{ partialCached "essentials/script.html" . }}
{{ else }}
{{ partial "essentials/footer.html" . }} {{ partial "essentials/footer.html" . }}
{{ partial "essentials/script.html" . }}
{{ end }}
<!-- script (always cache it) -->
{{ partialCached "essentials/script.html" . }}
</body> </body>
</html> </html>

View File

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