We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00595dc commit 32b9b45Copy full SHA for 32b9b45
layouts/_default/list.html
@@ -24,9 +24,7 @@ <h2 class="tags__title">{{ .Title }}</h2>
24
{{- $pages := union .RegularPages .Sections }}
25
{{ range $pages }}
26
{{ $image := .Params.image }}
27
- {{if hasPrefix $image "http" }}
28
- {{ else }}
29
- {{ $image = print .Site.BaseURL .Params.image }}
+ {{if hasPrefix $image "http" }}{{ else }}{{ $image = print .Site.BaseURL .Params.image }} {{ end -}}
30
<div class="resultItem">
31
<div class="resultItem__media" style="background-image: url({{ (print $image ) | absURL }});"></div>
32
<div class="resultItem__body">
0 commit comments