From f6825648b4029a17c1d3061a1c3e7483b48da0e1 Mon Sep 17 00:00:00 2001 From: Anton Ohorodnyk Date: Sun, 3 Jan 2021 23:01:56 -0800 Subject: [PATCH] Disable notification for prod and keep it for dev only --- layouts/partials/site-header.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/partials/site-header.html b/layouts/partials/site-header.html index b919a2d4..5052fbd5 100644 --- a/layouts/partials/site-header.html +++ b/layouts/partials/site-header.html @@ -1,7 +1,9 @@ -{{ partial "theme-notification" . }} +{{ if eq hugo.Environment "development" }} + {{ partial "theme-notification" . }} +{{ end }}