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

</figure>