diff options
| author | roninro <liumy.f@foxmail.com> | 2022-07-29 19:47:30 +0800 |
|---|---|---|
| committer | roninro <liumy.f@foxmail.com> | 2022-07-29 19:47:30 +0800 |
| commit | fb84df6f8190a850b0456ca144139598bdb2800c (patch) | |
| tree | c5d09ca27d988868a5d3d9342efe943f81e5995e /layouts/_default/_markup/render-image.html | |
| parent | f0e8a71001ad71fbeeab702eee7375f9c1d06960 (diff) | |
support Medium's Image Zoom
Diffstat (limited to 'layouts/_default/_markup/render-image.html')
| -rw-r--r-- | layouts/_default/_markup/render-image.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html new file mode 100644 index 0000000..f4f9389 --- /dev/null +++ b/layouts/_default/_markup/render-image.html @@ -0,0 +1,10 @@ +<figure> + <a class="paragraph-image"> + <img src="{{ .Destination | safeURL }}" data-action="zoom" alt="{{ .Text }}" {{ with .Title }} title="{{ . }}"{{ end }} loading="lazy" decoding="async"> + </a> + {{ with .Title }} + <figcaption class="image-caption"> + {{- . | safeHTML -}} + </figcaption> + {{ end }} +</figure>
\ No newline at end of file |
