13 Commits

Author SHA1 Message Date
ZhenShuo Leo
8bfa9926c7 fix(render-image): improper srcset usage
- correct srcset image w descriptor value
- use compressed image for src fallback
2025-10-11 15:07:20 +08:00
ZhenShuo Leo
571b875f4a fix(figure): limit link hover area to image only 2025-08-03 19:17:12 +08:00
kirill.chalov
58f0e30d65 🐛 fix: add default figure shortcode as partial
Hugo v0.146 removed access to embedded templates like "_internal/shortcodes/figure.html".
This commit adds the template as figure-default.html.

This fixes build errors reported and partially solved in issues #2052 and #2093
when using the figure shortcode with the "default=true" option.
2025-06-05 16:34:12 +08:00
Nuno Coração
c838202da6 Merge pull request #2055 from ragibson/main
Rewrite templates/partials for Hugo v0.146.0
2025-05-01 16:43:38 +01:00
ALXD
5af31913f1 add data-zoom-src to figure and render-image layouts fixing medium-zoom 2025-04-26 12:48:35 +02:00
Ryan Gibson
baaf251bde Rewrite templates/partials for Hugo v0.146.0 2025-04-11 09:32:47 -04:00
wermos
581aba3359 Be less aggressive in removing newlines. 2024-06-03 22:45:22 +05:30
wermos
bb435aded7 Minified the shortcodes and added handling for SVGs. 2024-06-03 22:34:24 +05:30
Nuno Coração
5e0744981d fixed https://github.com/nunocoracao/blowfish/issues/1112 2024-05-26 22:02:28 +01:00
Graeme A Stewart
fdb7bbd3c0 Add target parameter to figure shortcode
Add the "target" parameter to the figure.html shortcode.
If defined then add this target property to the href of the figure,
which allows the link to, e.g., open in a new tab.

Add description of target to docs
2024-03-05 14:05:27 +01:00
Gottfried Mayer
ea2f848064 feat: add nozoom attribute to figure 2023-08-28 21:14:06 +02:00
Nuno Coração
0516d2fb96 🐛 Image zoom level too low 2022-12-21 20:48:57 +00:00
Nuno Coração
8fbdecb6e7 initial commit 2022-09-10 20:05:37 +01:00