From dd3c0d87d8ca1ef39ccae2966d6fea893bf61a37 Mon Sep 17 00:00:00 2001 From: Parker TenBroeck <51721964+ParkerTenBroeck@users.noreply.github.com> Date: Fri, 23 Jan 2026 09:37:36 -0500 Subject: [PATCH] added explicit width,height to images --- sass/style.scss | 4 ++++ templates/gallery.html | 4 ++-- templates/macros/figures.html | 6 +++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/sass/style.scss b/sass/style.scss index 2cfedd6..1e5b6fb 100644 --- a/sass/style.scss +++ b/sass/style.scss @@ -56,6 +56,10 @@ a { } } +img,video { + background-color: var(--grey-dark); +} + h1, h2, h3, diff --git a/templates/gallery.html b/templates/gallery.html index e70aaa1..54bc640 100644 --- a/templates/gallery.html +++ b/templates/gallery.html @@ -6,9 +6,9 @@

diff --git a/templates/macros/figures.html b/templates/macros/figures.html index a07d9ef..0292365 100644 --- a/templates/macros/figures.html +++ b/templates/macros/figures.html @@ -1,6 +1,9 @@ {% macro image(src, caption, class="") %} +{% set mdata = get_image_metadata(path=src) %} +{# {% set image = resize_image(path=src, height=mdata.height, width=mdata.width, format="webp") %} #} +
- {{caption | default(value='')}} + {{caption | default(value='')}} {% if caption != "" %}
{{ caption | markdown() | safe }}
{% endif %} @@ -10,6 +13,7 @@ {% macro video(src, caption, loop=false, controls=true, autoplay=false, poster="", class="") %} +