From 5cec52da45cbd49c158a6492ece5926f7c360c9f Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Fri, 29 Mar 2024 21:03:36 +0100 Subject: [PATCH] Fix deprecation warning --- layouts/partials/meta/google-analytics-async.html | 2 +- layouts/partials/meta/google-site-verification.html | 2 +- layouts/partials/meta/tag-manager.html | 2 +- layouts/partials/prepend-body.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/partials/meta/google-analytics-async.html b/layouts/partials/meta/google-analytics-async.html index 79d93af..f8224fb 100644 --- a/layouts/partials/meta/google-analytics-async.html +++ b/layouts/partials/meta/google-analytics-async.html @@ -1,4 +1,4 @@ -{{- if .Site.IsServer -}} +{{- if hugo.IsServer -}} {{- else -}} {{- with .Site.Params.google_analytics_id -}} diff --git a/layouts/partials/meta/google-site-verification.html b/layouts/partials/meta/google-site-verification.html index 5f5d0e5..7e14e2e 100644 --- a/layouts/partials/meta/google-site-verification.html +++ b/layouts/partials/meta/google-site-verification.html @@ -1,4 +1,4 @@ -{{- if .Site.IsServer -}} +{{- if hugo.IsServer -}} {{- else -}} {{- if .IsHome -}} diff --git a/layouts/partials/meta/tag-manager.html b/layouts/partials/meta/tag-manager.html index d527032..2209e2a 100644 --- a/layouts/partials/meta/tag-manager.html +++ b/layouts/partials/meta/tag-manager.html @@ -1,4 +1,4 @@ -{{- if .Site.IsServer -}} +{{- if hugo.IsServer -}} {{- else -}} {{- with .Site.Params.tag_manager_container_id -}} diff --git a/layouts/partials/prepend-body.html b/layouts/partials/prepend-body.html index e3c7eac..3cebec8 100644 --- a/layouts/partials/prepend-body.html +++ b/layouts/partials/prepend-body.html @@ -1,4 +1,4 @@ -{{ if .Site.IsServer }} +{{ if hugo.IsServer }} {{ else }} {{- with .Site.Params.tag_manager_container_id -}}