wrap .BaseFileName `with .File`
This commit is contained in:
parent
664a609103
commit
e146cc68fb
|
@ -95,7 +95,7 @@
|
||||||
{{ else if eq .Site.Params.colorscheme "auto" }}
|
{{ else if eq .Site.Params.colorscheme "auto" }}
|
||||||
{{ $csClass = "colorscheme-auto" }}
|
{{ $csClass = "colorscheme-auto" }}
|
||||||
{{ end }}
|
{{ 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">
|
<main class="wrapper">
|
||||||
{{ partial "header.html" . }}
|
{{ partial "header.html" . }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue