small fixes

This commit is contained in:
teldra 2022-06-15 17:15:05 +02:00
parent 2f5a73768b
commit 595245d1c9
2 changed files with 0 additions and 2 deletions

View File

@ -54,7 +54,6 @@
{{ with .Title}} title="{{ . }}"{{ end }} {{ with .Title}} title="{{ . }}"{{ end }}
width={{ $image.Width }} width={{ $image.Width }}
height="{{ $image.Height }}" /> height="{{ $image.Height }}" />
<div>{{ . }}</div>
</a> </a>
</div> </div>
{{ end }} {{ end }}

View File

@ -67,7 +67,6 @@
{{ $b := true }} {{ $b := true }}
{{ if or (lt (int .Width) $good_w) (gt (int .Width) $good_w) (lt (int .Height) $good_h) (gt (int .Height) $good_h) }} {{ if or (lt (int .Width) $good_w) (gt (int .Width) $good_w) (lt (int .Height) $good_h) (gt (int .Height) $good_h) }}
<div class="dev left" style="margin: 1rem;"> <div class="dev left" style="margin: 1rem;">
Banner not shown, because:<br>
{{ if lt (int .Width) $good_w }} {{ if lt (int .Width) $good_w }}
{{ $b = false }} {{ $b = false }}
{{ if eq hugo.Environment "development" }} {{ if eq hugo.Environment "development" }}