🐛 Prevent analytics partial from being cached

Fixes #480
pull/496/head
James Panther 2023-03-05 08:58:13 +11:00
parent ae300f4f76
commit fcffdfd8a6
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
2 changed files with 6 additions and 2 deletions

View File

@ -16,6 +16,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Upgrade to Chart.js v4.2.1 ([#472](https://github.com/jpanther/congo/pull/472)) - Upgrade to Chart.js v4.2.1 ([#472](https://github.com/jpanther/congo/pull/472))
- Upgrade to Tailwind v3.2.7 ([#491](https://github.com/jpanther/congo/pull/491)) - Upgrade to Tailwind v3.2.7 ([#491](https://github.com/jpanther/congo/pull/491))
### Fixed
- Caching the analytics partial prevents some advanced analytics use cases ([#480](https://github.com/jpanther/congo/issues/480))
## [2.5.2] - 2023-01-24 ## [2.5.2] - 2023-01-24
### Added ### Added

View File

@ -106,7 +106,7 @@
{{/* Vendor */}} {{/* Vendor */}}
{{ partial "vendor.html" . }} {{ partial "vendor.html" . }}
{{/* Analytics */}} {{/* Analytics */}}
{{ partialCached "analytics.html" .Site }} {{ partial "analytics.html" . }}
{{/* Extend head - eg. for custom analytics scripts, etc. */}} {{/* Extend head - eg. for custom analytics scripts, etc. */}}
{{ if templates.Exists "partials/extend-head.html" }} {{ if templates.Exists "partials/extend-head.html" }}
{{ partial "extend-head.html" .Site }} {{ partial "extend-head.html" .Site }}