{{# Lightweight picture component that uses Glide to generate images. It supports lazy loading and object-cover. Notice that the component doesn't use sizes attribute, because in our view it's a waste of time. Just pass the dimensions of the largest image size that needs rendered. Images are lazy loaded and saving a few kilobytes on the initial load is not worth the extra complexity. Docs: https://statamic.dev/tags/glide Params: - w: Width of the image. - h: Height of the image. - class: Additional classes for the image. - cover: Whether to use object-cover. Defaults to `false`. - not_lazy: Whether to disable lazy loading. Defaults to `false`. #}} {{ if image }} {{ asset :url="image" }} {{ if extension === 'svg' || extension === 'gif' }} {{ alt }} {{ elseif w && h }} {{ alt }} {{ else }} {{ alt }} {{ /if }} {{ /asset }} {{ /if }}