diff options
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r-- | layouts/shortcodes/img-c.html | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/layouts/shortcodes/img-c.html b/layouts/shortcodes/img-c.html index 3da2c5c..a05617f 100644 --- a/layouts/shortcodes/img-c.html +++ b/layouts/shortcodes/img-c.html @@ -7,17 +7,19 @@ {{- $img1x := $img.Resize "800x webp q90"}} {{- $img2x := $img.Resize "1600x webp q90"}} <figure> - <img - class="center {{ $imgclass }}" - alt="{{ $caption }}" - src="{{ $img1x.RelPermalink }}" - srcset=" - {{ $img1x.RelPermalink }} 1x, - {{ $img2x.RelPermalink }} 2x - " - width="{{ $img1x.Width }}" - height="{{ $img1x.Height }}" - > + <a href="{{ $img.RelPermalink }}"> + <img + class="center {{ $imgclass }}" + alt="{{ $caption }}" + src="{{ $img1x.RelPermalink }}" + srcset=" + {{ $img1x.RelPermalink }} 1x, + {{ $img2x.RelPermalink }} 2x + " + width="{{ $img1x.Width }}" + height="{{ $img1x.Height }}" + > + </a> <figcaption> {{ $caption }} |