added class 'env-development' when environment is set to development in hugo.toml

This commit is contained in:
Andreas Hnida 2024-04-20 12:12:53 +02:00
commit 6cc391b3e4

View file

@ -15,7 +15,7 @@ itemtype="http://schema.org/WebPage">
{{ partialCached "essentials/style.html" . }}
</head>
<body>
<body class="{{ if eq .Site.Params.environment "development" }}env-development{{ end }}">
<!-- cache partial only in production -->
{{ if hugo.IsProduction }}
{{ partialCached "preloader.html" . }}