From caddec2fcdbdfabb2cce6d1441297639bd1e5df4 Mon Sep 17 00:00:00 2001 From: Leo Date: Tue, 1 Oct 2024 21:54:31 +0800 Subject: [PATCH] feature: figure support url. (#2586) This PR allows the `figure` to accept url as the src of the``. currently, it only supports the relative path. ``` // raw img {{ image.description }} // assign url to figure {% assign image_url = image.url %} {% include figure.liquid url=image_url class="img-fluid rounded z-depth-1" zoomable=true %} ``` --------- Signed-off-by: ifuryst Co-authored-by: George <31376482+george-gca@users.noreply.github.com> --- _includes/figure.liquid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/figure.liquid b/_includes/figure.liquid index 461e27a..a8d54da 100644 --- a/_includes/figure.liquid +++ b/_includes/figure.liquid @@ -30,7 +30,7 @@ > {% endif %}