Skip to content

Commit 9e4c717

Browse files
authored
Merge pull request #40 from gethinode/develop
feat: document static asset support for image shortcode
2 parents f3f1c7a + 4348480 commit 9e4c717

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

content/components/image.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,22 @@ The shortcode supports vector images of type `.svg` too. The shortcode supports
109109
{{< /example >}}
110110
<!-- markdownlint-enable MD037 -->
111111

112+
### Static assets
113+
114+
Files stored in the site's `static` folder are served as-is, without any image processing or resizing. This is required for formats where processing would alter the content, such as animated GIFs.
115+
116+
{{< release version="v2.1.0" >}}
117+
118+
> [!NOTE]
119+
> Place the file in your site's `static` folder and reference it by its public path (e.g. `/img/animation.gif`). Static files are detected automatically — no additional arguments are needed.
120+
121+
<!-- markdownlint-disable MD037 -->
122+
{{< example lang="hugo" >}}
123+
{{</* image src="/img/cloudcannon-visual-editing.gif"
124+
wrapper="col-12 col-md-8 mx-auto border" */>}}
125+
{{< /example >}}
126+
<!-- markdownlint-enable MD037 -->
127+
112128
### DAM images
113129

114130
Hinode supports [Cloudinary](https://cloudinary.com), [ImageKit.io](https://imagekit.io), and [Imgix](https://imgix.com) as Digital Asset Manager (DAM). You can configure these managers in your site parameters. Check out the [DAM configuration](https://gethinode.com/docs/configuration/digital-asset-managers/) for more details.
126 KB
Loading

0 commit comments

Comments
 (0)