From cc7cec07df34c607e0052ceee664eab6150f74b6 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Thu, 3 Jul 2025 20:15:17 -0500 Subject: [PATCH] Revert "Set height and width specifically on img tag" This reverts commit be12afb50d56900356a5904ef0aeea7482274569. It causes issues with aspect ratio when the raw width of the image is wider than the width in CSS pixels allowed by the body max-width. Not reverting the refactor that removes {{ $img = . }} because I don't know why that was there and will see if it works fine with it still removed. --- layouts/_partials/figure.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_partials/figure.html b/layouts/_partials/figure.html index b4c5470..2e4bb85 100644 --- a/layouts/_partials/figure.html +++ b/layouts/_partials/figure.html @@ -8,7 +8,7 @@ {{ with index . "src" }} {{ if eq .MediaType.MainType "image" }} - {{ .Title }} + {{ .Title }} {{ else if eq .MediaType.MainType "video" }}