aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default/_markup/render-image.html
blob: 3d15a11607fef93eea2372c1dee6b3841dce4925 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<figure class="figure">
<a href="{{ .Destination | safeURL }}">
<img 
    class="d-block img-fluid mb-2 rounded border shadow"
    max-width="800"
    loading="lazy"
    src="{{ .Destination | safeURL }}"
    {{- with .Text }} alt="{{ . }}"{{ end -}}
    {{- with .Title }} title="{{ . }}"{{ end -}}
>
</a>
{{- with .Title }}<figcaption class="figure-caption">{{.}}</figcaption>{{end -}}

</figure>