Add cover size
1 files changed, 2 insertions(+), 1 deletions(-) M layouts/index.html
M layouts/index.html => layouts/index.html +2 -1
@@ 5,8 5,9 @@ {{ .Content }} </section> {{- if .Params.cover -}} {{- $cover := printf "static/%s" .Params.cover | imageConfig -}} <aside> <img src="{{ .Params.cover }}"{{ if .Params.covercaption }} alt="{{ .Params.covercaption }}"{{ end }}> <img src="{{ .Params.cover }}" width="{{ $cover.Width }}" height="{{ $cover.Height }}"{{ if .Params.covercaption }} alt="{{ .Params.covercaption }}"{{ end }}> </aside> {{- end }} </article>