small fixes

This commit is contained in:
teldra 2022-06-17 10:27:07 +02:00
parent 5fc91a1191
commit 076b8f82cb

View File

@ -38,7 +38,7 @@
{{ with .File }}
{{ $slug = anchorize .ContentBaseName }}
{{ end }}
{{ if or (and $img (ne .Params.banner false)) (.Resources.ByType "image") }}1
{{ if or (and $img (ne .Params.banner false)) (.Resources.ByType "image") }}
{{ if .Resources.Match "banner*" }}
{{ $img = .Resources.GetMatch "banner*" }}
{{ end }}
@ -83,7 +83,7 @@
{{ if not .IsHome }}<h1 class="{{ $title_class }}">{{ $title }}</h1> {{ end }}
</div>
{{ end }}
{{ else }}2
{{ else }}
<div class="banner b altbg">
{{ if eq hugo.Environment "development" }}
{{ if eq .Params.banner false }}