From ea2f848064e5babe207f72cba08e44df593c4810 Mon Sep 17 00:00:00 2001 From: Gottfried Mayer Date: Mon, 28 Aug 2023 21:14:06 +0200 Subject: [PATCH] feat: add nozoom attribute to figure --- layouts/shortcodes/figure.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html index a9a4a15b..c916c9dc 100644 --- a/layouts/shortcodes/figure.html +++ b/layouts/shortcodes/figure.html @@ -7,6 +7,7 @@ {{ $caption := .Get "caption" }} {{ $href := .Get "href" }} {{ $class := .Get "class" }} + {{ $nozoom := .Get "nozoom" | default false }} {{ if findRE "^https?" $url.Scheme }}
{{ $altText }} @@ -24,13 +25,13 @@ {{ with $href }}{{ end }} {{ if $disableImageOptimization }} {{ $altText }} {{ else }} {{ else }}
- {{ $altText }} + {{ $altText }} {{ with $caption }}
{{ . | markdownify }}
{{ end }}
{{ end }}