Skip to content

Commit 32b9b45

Browse files
committed
update image
1 parent 00595dc commit 32b9b45

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

layouts/_default/list.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ <h2 class="tags__title">{{ .Title }}</h2>
2424
{{- $pages := union .RegularPages .Sections }}
2525
{{ range $pages }}
2626
{{ $image := .Params.image }}
27-
{{if hasPrefix $image "http" }}
28-
{{ else }}
29-
{{ $image = print .Site.BaseURL .Params.image }}
27+
{{if hasPrefix $image "http" }}{{ else }}{{ $image = print .Site.BaseURL .Params.image }} {{ end -}}
3028
<div class="resultItem">
3129
<div class="resultItem__media" style="background-image: url({{ (print $image ) | absURL }});"></div>
3230
<div class="resultItem__body">

0 commit comments

Comments
 (0)