wrap .BaseFileName `with .File`

This commit is contained in:
Ray Elliott 2020-02-19 17:43:27 +00:00
parent 664a609103
commit e146cc68fb
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@
{{ else if eq .Site.Params.colorscheme "auto" }}
{{ $csClass = "colorscheme-auto" }}
{{ end }}
<body class="{{ .Kind | lower }} {{ .File.BaseFileName | lower }} {{ $csClass }}{{ if .Site.Params.rtl }} rtl{{ end }}">
<body class="{{ .Kind | lower }} {{ with .File }}{{ .BaseFileName | lower }}{{ end }} {{ $csClass }}{{ if .Site.Params.rtl }} rtl{{ end }}">
<main class="wrapper">
{{ partial "header.html" . }}