From 4592cf5703b3dbbbb88aedcb75fdd1f5bb194ae8 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 03a96d3253..d7c9d50b2b 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,6 +1,9 @@ - +{{- if eq hugo.Environment "preview" -}} + +{{- end -}} + {{ partial "head.html" . }}