<div class="card">
    <a class="card-block stretched-link text-decoration-none"
       href="/images/2k/{{ .Params.img }}.jpg"
       data-toggle="lightbox"
       data-gallery="page-gallery"
       data-title="{{ .Page.Title }}"
       data-footer="A <a href='/images/2k/{{ .Params.img }}' target='_blank'>custom</a> footer text">
        <img src="/images/mini/{{ .Params.img }}.jpg" class="card-img-top">
    </a>
</div>