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 }}">
{{ end }}
Posted by {{ .Site.Params.author }} on {{ partial "time.html" . }}