small fixes

This commit is contained in:
teldra 2022-06-14 23:26:02 +02:00
parent 3d60a01691
commit fd28b22d19
1 changed files with 2 additions and 2 deletions

View File

@ -120,9 +120,9 @@
{{ if not .IsHome }}<h1 class="{{ $title_class }}">{{ $title }}</h1> {{ end }}
{{ if eq hugo.Environment "development" }}
{{ $str1 := printf "assets/images/banner/%s* missing.." $what }}
{{ $str2 := printf "content//banner* missing.." }}
{{ $str2 := "" }}
{{ with .File }}
{{ $str2 = printf "content/%s/banner* missing.." .Dir }}
{{ $str2 = printf "content/%sbanner* missing.." .Dir }}
{{ end }}
<p>
{{ if eq .Params.banner false }}