Videos
Check out our tutorial video series.
Using custom `render-image` layout partial in Hugo, learn how to serve responsive picture tags with source sets and webp conversion for images.
How to render picture tag images in Hugo with custom layout.
For performance reasons. Using src-sets with image tags means user only get the images they need. This is an important consideration along with other performance tricks such as reducing DOM size and using lazy loading.
Hugo is a static site generator written in Go. One can write content in markdown and render HTML using simple HTML templates.
Responsive images are images on a website that differ based on screen size or device properties. One popular method in HTML5 to serve responsive images is the tag.
In Hugo we can use a custom layout partial to handle rendering of images to include source sets.
Create a custom layout inside your Hugo theme or layouts folder.
Inside the partial you can access images as they get processed by Hugo when reading your markdown content.
The above partial will include webp sources if they exist for png images. You can extend this to include more content types or sizes.
Use the webp tool to convert png and jpeg images into webp format.
Check out our tutorial video series.
Email and SMS guides for automation and testing.
View github project code for multiple languages.
Latest posts from the MailSlurp team.
Test, build, and automate messaging with a free MailSlurp account.