2020-05-28 11:05:37 +02:00
|
|
|
{{- if .Title -}}
|
2020-03-08 14:02:21 +01:00
|
|
|
<figure>
|
2022-05-13 20:28:35 +02:00
|
|
|
{{- dict "Src" .Destination "Title" .Text "Caption" .Title "Linked" true "Resources" .Page.Resources | partial "plugin/img.html" -}}
|
2020-02-03 11:38:10 +01:00
|
|
|
<figcaption class="image-caption">
|
2020-05-28 11:05:37 +02:00
|
|
|
{{- .Title | safeHTML -}}
|
2020-02-03 11:38:10 +01:00
|
|
|
</figcaption>
|
2020-03-08 14:02:21 +01:00
|
|
|
</figure>
|
|
|
|
{{- else -}}
|
2022-05-13 20:28:35 +02:00
|
|
|
{{- dict "Src" .Destination "Title" .Text "Resources" .Page.Resources | partial "plugin/img.html" -}}
|
2020-03-08 14:02:21 +01:00
|
|
|
{{- end -}}
|