add condition

This commit is contained in:
Vri 🌈 2023-05-17 13:20:19 +02:00
parent 3eb883a192
commit 727357ab3e
Signed by: vrifox
GPG key ID: D40098E5B60B2197

View file

@ -8,7 +8,7 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body id="{{ .File.ContentBaseName }}" class="{{ .Page.Section }}">
<body id="{{ with .File }}{{ .ContentBaseName }}{{ end }}" class="{{ .Page.Section }}">
{{- block "header" . }}{{ end }}
{{ partial "sidebar.html" . }}
{{- block "main" . }}{{ end }}