From a841050e84846d69917e1c1431f0557542473c9b Mon Sep 17 00:00:00 2001 From: Hoernschen Date: Sun, 14 Jan 2024 12:44:43 +0100 Subject: [PATCH] FIX image selection? --- assets/scss/index.scss | 4 ++-- layouts/partials/hero.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/scss/index.scss b/assets/scss/index.scss index 2a6bf9a..dd4e0a9 100644 --- a/assets/scss/index.scss +++ b/assets/scss/index.scss @@ -469,13 +469,13 @@ main > .content { /* Images */ img { + max-width: 100%; + height: auto; margin: auto; object-fit: contain; } .avatar { - width: 100%; - height: 100%; border-radius: 50%; border: 3px solid {{ .Site.Params.color.primary }}; object-fit: cover; diff --git a/layouts/partials/hero.html b/layouts/partials/hero.html index 973d560..a89efcb 100644 --- a/layouts/partials/hero.html +++ b/layouts/partials/hero.html @@ -9,7 +9,7 @@ hero: url: string content: string --> -
+
{{ with .hero }}