From adac7dd7f5480324e0e9b59540e38b4459c1035e Mon Sep 17 00:00:00 2001 From: Tim Bannister Date: Tue, 7 Dec 2021 17:51:34 +0000 Subject: [PATCH] Mark live site in HTML This allows CSS, JavaScript etc to detect if the served website is the live one. --- layouts/_default/baseof.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 612bddbb2c..6b384fb294 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,6 +1,9 @@ - +{{- if eq hugo.Environment "preview" -}} + +{{- end -}} + {{ partial "head.html" . }}