From 08a408f284236af6de3118155bd719a9397f70dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20D=C3=A9ramond?= Date: Wed, 24 Apr 2024 11:26:23 +0200 Subject: [PATCH] Prevent unused `partials/analytics.html` warning when not in production (#465) --- 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 }}