From be12afb50d56900356a5904ef0aeea7482274569 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Thu, 3 Jul 2025 18:47:55 -0500 Subject: [PATCH] Set height and width specifically on img tag --- layouts/_partials/figure.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/layouts/_partials/figure.html b/layouts/_partials/figure.html index 20a2405..b4c5470 100644 --- a/layouts/_partials/figure.html +++ b/layouts/_partials/figure.html @@ -7,18 +7,17 @@ {{ end }} {{ with index . "src" }} - {{ $media := . }} {{ if eq .MediaType.MainType "image" }} - {{ $media.Title }} + {{ .Title }} {{ else if eq .MediaType.MainType "video" }} {{ end }} {{ if not $hidecaption }} - {{ with $media.Title }} + {{ with .Title }}
{{ . | markdownify }}