]> danix's work - danix2-hugo-theme.git/commit
feat: add img shortcode template
authorDanilo M. <redacted>
Sun, 5 Apr 2026 07:30:10 +0000 (09:30 +0200)
committerDanilo M. <redacted>
Sun, 5 Apr 2026 07:30:10 +0000 (09:30 +0200)
commit628be4b1e9ba1084b4949acdbf81b17bcde526ee
tree9032528c78754a871b93688fc055e4af1dafab30
parentc76fa272cdde2f986cddd39b8bfe937aab497af4
feat: add img shortcode template

Ported img shortcode from previous theme. Creates responsive, optimized images with LQIP fade-in effect, WebP with JPEG fallback, and responsive srcsets.

Requires imageSizes config in hugo.toml, e.g.:
[params]
imageSizes = [640, 900, 1200, 1600]

Usage: {{< img src="path/to/image.jpg" alt="Description" >}}

Co-Authored-By: Claude Haiku 4.5 <redacted>
layouts/shortcodes/img.html [new file with mode: 0644]