Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #34 from MyIgel/fix-cover-img
Browse files Browse the repository at this point in the history
Removed `img/` prefix from cover page params
  • Loading branch information
panr authored Feb 8, 2019
2 parents 32409a7 + b295b14 commit e2039dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
{{ end }}

{{ with .Params.Cover }}
<img src="{{ printf "img/%s" . | absURL }}" class="post-cover" />
<img src="{{ . | absURL }}" class="post-cover" />
{{ end }}

<div class="post-content">
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h2 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
{{ end }}

{{ with .Params.Cover }}
<img src="{{ printf "img/%s" . | absURL }}" class="post-cover" />
<img src="{{ . | absURL }}" class="post-cover" />
{{ end }}

<div class="post-content">
Expand Down

0 comments on commit e2039dc

Please sign in to comment.