From d6f72431687db35a62cf57d3e03be8f4f40fc39d 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" . }}