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

Commit

Permalink
Removed img/ prefix from cover page params
Browse files Browse the repository at this point in the history
closes #33 (Don't prepend `img/` on cover links)
  • Loading branch information
MyIgel committed Feb 8, 2019
1 parent 32409a7 commit b295b14
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 b295b14

Please sign in to comment.