2020-03-08 14:02:21 +01:00
|
|
|
{{- with .Title -}}
|
|
|
|
<figure>
|
|
|
|
{{- partial "plugin/image.html" (dict "src" $.Destination "title" $.Title "description" $.Text "lightgallery" true "scratch" ($.Page.Scratch.Get "scratch")) -}}
|
2020-02-03 11:38:10 +01:00
|
|
|
<figcaption class="image-caption">
|
2020-02-18 09:22:24 +01:00
|
|
|
{{- . | safeHTML -}}
|
2020-02-03 11:38:10 +01:00
|
|
|
</figcaption>
|
2020-03-08 14:02:21 +01:00
|
|
|
</figure>
|
|
|
|
{{- else -}}
|
|
|
|
{{- partial "plugin/image.html" (dict "src" .Destination "title" .Title "description" .Text "lightgallery" false "scratch" (.Page.Scratch.Get "scratch")) -}}
|
|
|
|
{{- end -}}
|