mirror of
https://github.com/Wivik/vinyl-records-collection-theme.git
synced 2024-11-21 15:13:17 +01:00
fix: fix image path
This commit is contained in:
parent
2d7ce0021d
commit
8ced83b67e
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user