From 61ac27bdf98332016fc735ebb6dcc49d18edbe6a Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Tue, 19 Oct 2021 13:12:38 -0500 Subject: [PATCH] Use page resources in figure shortcode (and hash the images) --- layouts/shortcodes/figure.html | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html index fc510af..a311ce9 100644 --- a/layouts/shortcodes/figure.html +++ b/layouts/shortcodes/figure.html @@ -1,13 +1,15 @@
+ {{ $img := $.Page.Resources.GetMatch (.Get "resrc") | resources.Fingerprint "sha512" }} + {{ if .Get "href" }}{{ end }} -