small fixes

This commit is contained in:
teldra 2022-06-15 18:21:36 +02:00
parent f04ea65c2c
commit 9a031fc47a
2 changed files with 8 additions and 2 deletions

View File

@ -27,7 +27,10 @@
</h2>
{{ end }}
{{ range $p }}
{{ $slug := anchorize .File.ContentBaseName }}
{{ $slug := "" }}
{{ with .File }}
{{ $slug = anchorize .ContentBaseName }}
{{ end }}
<div class="list_item">
{{ $metas := dict "when" .Params.when "price" .Params.price }}
{{ $banner := slice }}

View File

@ -34,7 +34,10 @@
{{ $single = true }}
{{ end }}
{{ $b := true }}
{{ $slug := anchorize .File.ContentBaseName }}
{{ $slug := "" }}
{{ with .File }}
{{ $slug = anchorize .ContentBaseName }}
{{ end }}
{{ if and (ne $img "none") (ne .Params.banner false) }}
<div style="background-image: url({{- $img.Permalink -}})" class="banner {{ $css }}">
{{ if eq hugo.Environment "development" }}