From 0f6c00e6a5ea2616273d6ec43d23faf8f31b8b22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Wed, 26 Jun 2024 15:40:57 +0200 Subject: [PATCH] shortcode to render a local screenshot of a remote resource --- layouts/shortcodes/screenshotOf.html | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 layouts/shortcodes/screenshotOf.html diff --git a/layouts/shortcodes/screenshotOf.html b/layouts/shortcodes/screenshotOf.html new file mode 100644 index 0000000..8ce6ee5 --- /dev/null +++ b/layouts/shortcodes/screenshotOf.html @@ -0,0 +1,6 @@ + +{{- $filename := .Get "src" -}} +{{- $image := .Page.Resources.GetMatch (printf "%s" $filename) -}} + + + \ No newline at end of file