From db188d1bd53579ce545426f9137856af9d6e0067 Mon Sep 17 00:00:00 2001 From: a Date: Wed, 16 Oct 2024 02:43:37 -0500 Subject: [PATCH] WIP: limit img max-width --- unified.test.hugo/assets/styles/common/elements.scss | 4 ++++ unified.test.hugo/assets/styles/layouts/_default/single.scss | 1 + unified.test.hugo/layouts/_default/single.html | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/unified.test.hugo/assets/styles/common/elements.scss b/unified.test.hugo/assets/styles/common/elements.scss index 12c8b3a..81b41cc 100644 --- a/unified.test.hugo/assets/styles/common/elements.scss +++ b/unified.test.hugo/assets/styles/common/elements.scss @@ -63,4 +63,8 @@ code { /* fix pre */ pre { margin: 0; +} +/* limit img to page width */ +img { + max-width: 100%; } \ No newline at end of file diff --git a/unified.test.hugo/assets/styles/layouts/_default/single.scss b/unified.test.hugo/assets/styles/layouts/_default/single.scss index 4080e24..eebf8c6 100644 --- a/unified.test.hugo/assets/styles/layouts/_default/single.scss +++ b/unified.test.hugo/assets/styles/layouts/_default/single.scss @@ -57,6 +57,7 @@ .page-date { grid-area: date; margin-block-end: 0; + .date {display: inline-block;} } .page-inreplyto { display: grid; diff --git a/unified.test.hugo/layouts/_default/single.html b/unified.test.hugo/layouts/_default/single.html index 913b64c..3deb479 100644 --- a/unified.test.hugo/layouts/_default/single.html +++ b/unified.test.hugo/layouts/_default/single.html @@ -19,7 +19,7 @@ {{- end }} {{- with .Date }}

- +Published

{{- end }} {{- with .Params.inReplyTo }}