I am using a modified version of this code (using <picture>
tag wrapped in <figure>
tag). So it already uses the .Title
as caption. (I removed the figure and placed the caption as a span, but I had to make the image a block element with CSS display: block
),