From a6ffae4245e1a0aea8d3fa0563cc73ff4377b86a Mon Sep 17 00:00:00 2001 From: Mackenzie Morgan Date: Thu, 28 Dec 2023 00:16:59 -0500 Subject: [PATCH] fix analytics --- layouts/partials/plugin/analytics.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/layouts/partials/plugin/analytics.html b/layouts/partials/plugin/analytics.html index 9b174ed1..b675a4a6 100644 --- a/layouts/partials/plugin/analytics.html +++ b/layouts/partials/plugin/analytics.html @@ -1,5 +1,4 @@ -{{- $analytics := .Scratch.Get "analytics" | default dict -}} - +{{- $analytics := .Site.Param "analytics" | default dict -}} {{- if $analytics.enable -}} {{- /* Google Analytics */ -}} {{- with $analytics.google.id -}}