Move new shortcodes: image, card, asciinema, badge into experimental folder

This commit is contained in:
Alex Shpak
2025-09-26 21:47:19 +02:00
parent 915477e527
commit e55b914050
5 changed files with 6 additions and 0 deletions
@@ -0,0 +1,33 @@
# Images
> [!WARNING]
> Experimental, could change in the future or be removed
Image shortcode produces an image that can be clicked to expand.
## Example
```go-html-template
{{</* image src="placeholder.svg" alt="A placeholder" title="A placeholder" loading="lazy" */>}}
```
{{< image src="placeholder.svg" alt="A placeholder" title="A placeholder" loading="lazy" >}}
## Parameters
`src` {{< badge style="warning" title="Required" >}}
: The link to the image
`class` {{< badge style="info" title="Optional" >}}
: An optional CSS class name that will be applied to the `img` element
`alt` {{< badge style="info" title="Optional" >}}
: An optional alternate text for the image
`title` {{< badge style="info" title="Optional" >}}
: An optional title for the image
`loading` {{< badge style="info" title="Optional" >}}
: Sets `loading` control for the image: `lazy`, `eager` or `auto`