mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2024-12-25 06:25:52 -05:00
parent
e04e248ae1
commit
3ca79f59fe
@ -36,7 +36,7 @@
|
||||
{{- if (or (fileExists (path.Join "static" .Params.cover.image)) (hasPrefix .Params.cover.image "http://") (hasPrefix .Params.cover.image "https://")) }}
|
||||
<img src="{{ .Params.cover.image | absURL }}" alt="{{ .Params.cover.alt | plainify }}">
|
||||
{{- else}}
|
||||
<img src="{{ .Permalink -}} {{- .Params.cover.image }}" alt="{{ .Params.cover.alt | plainify }}">
|
||||
<img src="{{ (path.Join .RelPermalink .Params.cover.image ) | absURL }}" alt="{{ .Params.cover.alt | plainify }}">
|
||||
{{- end}}
|
||||
</figure>
|
||||
{{- end }}
|
||||
|
Loading…
Reference in New Issue
Block a user