2020-07-20 16:03:28 +02:00
|
|
|
<figure>
|
2022-07-25 12:19:05 +02:00
|
|
|
{{ $url := .Destination }}
|
|
|
|
{{ $url = replaceRE `^../(.*?)` (printf "%s%s" .Page.Permalink "../$1") $url }}
|
|
|
|
<a href="{{ $url | absURL }}" class="lbox">
|
|
|
|
<img src="{{ $url | absURL }}" loading="lazy"{{ with .Text }} alt="{{ . }}"{{ end }}{{ with .Title}} title="{{ . }}"{{ end }}>
|
2020-07-20 16:03:28 +02:00
|
|
|
</a>
|
|
|
|
{{ with .Title }}
|
|
|
|
<figcaption>{{ . }}</figcaption>
|
|
|
|
{{ end }}
|
|
|
|
</figure>
|