From 323e97502ccaecece3856e4e4c3db50fe811ce61 Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Sun, 4 Jun 2023 10:44:42 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Change=20analytics=20to=20use=20?= =?UTF-8?q?`.IsProduction`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: #73 --- CHANGELOG.md | 4 ++++ layouts/partials/analytics.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e2c0022..f141b8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Upgrade to Tailwind v3.3.2 ([#74](https://github.com/jpanther/lynx/pull/74)) +### Fixed + +- Error building site when using Hugo v0.112.0 or later ([#73](https://github.com/jpanther/lynx/issues/73)) + ## [1.2.4] - 2023-01-18 ### Changed diff --git a/layouts/partials/analytics.html b/layouts/partials/analytics.html index 5ed1b98..f8c7c2c 100644 --- a/layouts/partials/analytics.html +++ b/layouts/partials/analytics.html @@ -1,4 +1,4 @@ -{{ if not .Site.IsServer }} +{{ if hugo.IsProduction }} {{ with .Site.Params.fathomAnalytics.site }} {{ if isset $.Site.Params.fathomanalytics "domain" }}