mirror of
https://github.com/thomasjsn/hugo-theme-hello-friend.git
synced 2025-04-28 16:39:17 +02:00
Removed img/
prefix from cover page params
closes #33 (Don't prepend `img/` on cover links)
This commit is contained in:
parent
32409a7012
commit
b295b14830
layouts/_default
@ -23,7 +23,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ with .Params.Cover }}
|
{{ with .Params.Cover }}
|
||||||
<img src="{{ printf "img/%s" . | absURL }}" class="post-cover" />
|
<img src="{{ . | absURL }}" class="post-cover" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="post-content">
|
<div class="post-content">
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ with .Params.Cover }}
|
{{ with .Params.Cover }}
|
||||||
<img src="{{ printf "img/%s" . | absURL }}" class="post-cover" />
|
<img src="{{ . | absURL }}" class="post-cover" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="post-content">
|
<div class="post-content">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user