From fcffdfd8a6b378d6dc97236323580a535f477512 Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Sun, 5 Mar 2023 08:58:13 +1100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Prevent=20analytics=20partial=20?= =?UTF-8?q?from=20being=20cached?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #480 --- CHANGELOG.md | 4 ++++ layouts/partials/head.html | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7eafbda2..3c877c3a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 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 ### Added diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 4810a528..857f255b 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -106,9 +106,9 @@ {{/* Vendor */}} {{ partial "vendor.html" . }} {{/* Analytics */}} - {{ partialCached "analytics.html" .Site }} + {{ partial "analytics.html" . }} {{/* Extend head - eg. for custom analytics scripts, etc. */}} {{ if templates.Exists "partials/extend-head.html" }} {{ partial "extend-head.html" .Site }} {{ end }} - + \ No newline at end of file