~schnouki/schnouki.net

427a23d2f0a3026df19cde4f3c3c67b78091666a — Thomas Jost 3 years ago 29bffbe
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>