From b5e4b0fef8c7bfb768a9e9e0d47e8b136f9cbc1d Mon Sep 17 00:00:00 2001
From: Felix	Boerner <ich@felix-boerner.de>
Date: Fri, 31 May 2024 19:19:20 +0000
Subject: [PATCH] feat: replace deprecated .Site.GoogleAnalytics

---
 layouts/partials/head.html |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index d2e1721..9ef53f9 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -34,10 +34,10 @@
 
 <!-- Custom Styles -->
 {{ if .Site.Params.custom.css.enable }}
-<link rel="stylesheet" href="{{ "css/style.css" | absURL }}" type="text/css" media="screen" />
+  <link rel="stylesheet" href="{{ "css/style.css" | absURL }}" type="text/css" media="screen" />
 {{ end }}
 
 <!-- Google Analytics -->
-{{ if and (.Site.GoogleAnalytics) (not (in (printf "%#v" .Site.BaseURL) "localhost")) }}
+{{ if and (.Site.Config.Services.GoogleAnalytics.ID) (not (in (printf "%#v" .Site.BaseURL) "localhost")) }}
   {{ template "_internal/google_analytics.html" . }}
 {{ end }}

--
Gitblit v1.10.0