mirror of
https://github.com/thomasjsn/hugo-theme-hello-friend.git
synced 2024-11-25 09:15:07 +01:00
Removed urlize from cover links
closes #57 (Bug: Using urlize in cover image URL's replaces uppercase characters with lowercase ones)
This commit is contained in:
parent
e0c1777296
commit
9940c34fba
@ -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 }}
|
||||||
|
|
||||||
|
@ -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 }}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user