Merge pull request #58 from MyIgel/fix-cover-image

Removed urlize from cover links
This commit is contained in:
Radek Kozieł 2019-06-05 00:29:35 +02:00 committed by GitHub
commit 82073aa51b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -30,7 +30,7 @@
{{ if .Params.UseRelativeCover }} {{ if .Params.UseRelativeCover }}
<img src="{{ (printf "%s%s" .Permalink .Params.Cover ) }}" class="post-cover" /> <img src="{{ (printf "%s%s" .Permalink .Params.Cover ) }}" class="post-cover" />
{{ else }} {{ else }}
<img src="{{ (urlize .Params.Cover | absURL) }}" class="post-cover" /> <img src="{{ .Params.Cover | absURL }}" class="post-cover" />
{{ end }} {{ end }}
{{ end }} {{ end }}

View file

@ -25,7 +25,7 @@
{{ if .Params.UseRelativeCover }} {{ if .Params.UseRelativeCover }}
<img src="{{ (printf "%s%s" .Permalink .Params.Cover ) }}" class="post-cover" /> <img src="{{ (printf "%s%s" .Permalink .Params.Cover ) }}" class="post-cover" />
{{ else }} {{ else }}
<img src="{{ (urlize .Params.Cover | absURL) }}" class="post-cover" /> <img src="{{ .Params.Cover | absURL }}" class="post-cover" />
{{ end }} {{ end }}
{{ end }} {{ end }}