fix: fix image path

This commit is contained in:
Wivik 2023-08-20 22:21:29 +02:00
parent 2d7ce0021d
commit 8ced83b67e
No known key found for this signature in database
GPG Key ID: 4C47CF1D8592D50F

View File

@ -9,7 +9,7 @@
{{ range .Pages }}
{{ $default_img := resources.Get "img/default.png" }}
<section class="album-card" style="background-image: url('{{ if .Params.cover }}{{ .Site.BaseURL }}{{ .Params.cover }}{{ else }}{{ $default_img.Permalink }}{{ end }}')">
<section class="album-card" style="background-image: url('{{ if .Params.cover }}{{ .Site.BaseURL }}/{{ .Params.cover }}{{ else }}{{ $default_img.Permalink }}{{ end }}')">
{{ if .Params.artist }}
<a href="/artist/{{ .Params.band | urlize }}" class="album-artist">{{ .Params.artist }}</a>
{{ end }}