From faed422f647075b4dbafd54c0c71ee0ea187d023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20D=C3=A9ramond?= Date: Tue, 23 Apr 2024 17:54:10 +0200 Subject: [PATCH] Prevent unused `partials/analytics.html` warning when not in production --- src/layouts/partials/analytics.html | 2 ++ src/layouts/partials/head.html | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layouts/partials/analytics.html b/src/layouts/partials/analytics.html index c238a6276..818c82a55 100644 --- a/src/layouts/partials/analytics.html +++ b/src/layouts/partials/analytics.html @@ -1 +1,3 @@ +{{- if hugo.IsProduction }} +{{- end }} diff --git a/src/layouts/partials/head.html b/src/layouts/partials/head.html index 890ceb095..f1543193b 100644 --- a/src/layouts/partials/head.html +++ b/src/layouts/partials/head.html @@ -25,6 +25,4 @@ {{ partial "favicons" . -}} {{ partial "social" . -}} {{ partial "scripts" . -}} -{{- if hugo.IsProduction }} {{ partial "analytics" . -}} -{{- end }}