image_block.html 254 B

123456
  1. {% load wagtailimages_tags %}
  2. <figure>
  3. {% picture self.image format-{avif,webp,jpeg} fill-{400x220,600x338} sizes="(max-width: 768px) 200px, 900px" loading="lazy" %}
  4. <figcaption>{{ self.caption }} - {{ self.attribution }}</figcaption>
  5. </figure>