Mark live site in HTML
This allows CSS, JavaScript etc to detect if the served website is the live one.pull/30790/head
parent
2dfe0d1c30
commit
4592cf5703
|
@ -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 (lower .Params.cid) "" -}}{{- printf " cid-%s" (lower .Params.cid) -}}{{- end -}}">
|
||||
|
|
Loading…
Reference in New Issue