Prevent displaying first image in post as cover

main
Elnu 2 years ago
parent cdc7e072f2
commit 380a350c1d

@ -1,4 +1,4 @@
{{ with .Resources.GetMatch "{cover.*,*.jpg,*.png,*.jpeg}" }} {{ with .Resources.GetMatch "{cover.*}" }}
<img src="{{ .Permalink }}"> <img src="{{ .Permalink }}">
{{ end }} {{ end }}
Posted by {{ .Site.Params.author }} on {{ partial "time.html" . }} Posted by {{ .Site.Params.author }} on {{ partial "time.html" . }}

Loading…
Cancel
Save