Introduce experimental OpenAPI shortcode

This commit is contained in:
Alex Shpak
2026-05-22 14:06:48 +02:00
parent 118c5354bb
commit 1d38cd0183
8 changed files with 683 additions and 35 deletions
@@ -0,0 +1,30 @@
# Images
Enhanced image display with click-to-expand behavior.
## Syntax
```tpl
{{</* image src="photo.jpg" alt="Description" title="Caption" loading="lazy" */>}}
```
## Example
{{< image src="placeholder.svg" alt="Placeholder image" title="Click to expand" loading="lazy" >}}
## Parameters
`src`
: Path to the image. Supports page resources, site resources, and URLs.
`alt`
: Alternate text for accessibility.
`title`
: Caption displayed below the image.
`loading`
: Loading strategy: `lazy`, `eager`, or `auto`.
`class`
: Additional CSS classes on the `<img>` element.