Mark live site in HTML
This allows CSS, JavaScript etc to detect if the served website is the live one.pull/31375/head
parent
e65a330692
commit
adac7dd7f5
|
@ -1,6 +1,9 @@
|
|||
<!doctype html>
|
||||
<html lang="{{ .Site.Language.Lang }}" class="{{.Params.class}} no-js">
|
||||
<head>
|
||||
{{- if eq hugo.Environment "preview" -}}
|
||||
<!-- deploy preview -->
|
||||
{{- end -}}
|
||||
<head {{- if hugo.IsProduction -}}class="live-site"{{- end -}}>
|
||||
{{ partial "head.html" . }}
|
||||
</head>
|
||||
<body class="td-{{ .Kind }}{{- if ne .Params.cid "" -}}{{- printf " cid-%s" (lower .Params.cid) -}}{{- end -}}">
|
||||
|
|
Loading…
Reference in New Issue