From 30af42cc2558c3c41564520d519c063171b8ef26 Mon Sep 17 00:00:00 2001 From: richmans Date: Sun, 3 Apr 2022 16:52:16 +0200 Subject: [PATCH] add captions to images --- layouts/_default/_markup/render-image.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html index 77eeed5..8dccfe0 100644 --- a/layouts/_default/_markup/render-image.html +++ b/layouts/_default/_markup/render-image.html @@ -31,7 +31,7 @@ {{/* only use images smaller than or equal to the src (original) image size, as Hugo will upscale small images */}} - +
@@ -54,7 +54,8 @@ image size, as Hugo will upscale small images */}} - +
{{ .Title | markdownify }}
+
{{/* Since I do image-response class, the only thing that really matters is the height and width matches the image aspect ratio */}}