commit 3a8ac5e504f9d8b4315b65f1d3a08b9741bd1e72
parent f29178665d3e85914943d4028cb6d71c9987ffe5
Author: Lou Woell <lou.woell@posteo.de>
Date:   Wed, 28 Aug 2024 15:57:27 +0200

center cover image

Diffstat:
MexampleSite/content/showcase.md | 1+
AexampleSite/static/img/BoyWithMachine.png | 0
Mlayouts/partials/cover.html | 2+-
3 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/exampleSite/content/showcase.md b/exampleSite/content/showcase.md @@ -5,6 +5,7 @@ author: "Hello Robot" toc: true LiveDoc: true lastmod: "2024-08-25" +cover: /img/BoyWithMachine.png --- # Header 1: Some Formatting diff --git a/exampleSite/static/img/BoyWithMachine.png b/exampleSite/static/img/BoyWithMachine.png Binary files differ. diff --git a/layouts/partials/cover.html b/layouts/partials/cover.html @@ -18,7 +18,7 @@ {{if $cover -}} <!-- Cover image found --> <img src="{{ $cover }}" - class="post-cover" + class="post-cover center" alt="{{ .Title | plainify | default " " }}" title="{{ .Params.CoverCredit |plainify|default "Cover Image" }}" /> {{- end }}