Documentation
To use media such image , video and others file, you can upload all your media files in to /content/media/
Since we are using eleventy image widget, all images will be automatically compressed by eleventy, therefore in the build production process will produce images that have been optimized by eleventy with random file names. This is why we need to place our static files on /content/media
folder.
To insert your media assets, you simply add your media location files in to JSON / YAML / Markdown frontmatter,example look like this
image: /media/img/myimage.jpg
Tags: docs media eleventy image
Update At 10 September 2024 , by JAMSTACK THEMES
On this Page
On this Page
To use media such image , video and others file, you can upload all your media files in to /content/media/
Since we are using eleventy image widget, all images will be automatically compressed by eleventy, therefore in the build production process will produce images that have been optimized by eleventy with random file names. This is why we need to place our static files on /content/media
folder.
To insert your media assets, you simply add your media location files in to JSON / YAML / Markdown frontmatter,example look like this
image: /media/img/myimage.jpg
Tags: docs media eleventy image
Update At 10 September 2024 , by JAMSTACK THEMES