forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
f04ea65c2c
commit
9a031fc47a
|
@ -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 }}
|
||||
|
|
|
@ -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" }}
|
||||
|
|
Loading…
Reference in New Issue