11 lines
424 B
HTML
11 lines
424 B
HTML
{{- if .Title -}}
|
|
<figure>
|
|
{{- dict "Src" .Destination "Title" .Text "Caption" .Title "Linked" true "Resources" .Page.Resources | partial "plugin/image.html" -}}
|
|
<figcaption class="image-caption">
|
|
{{- .Title | safeHTML -}}
|
|
</figcaption>
|
|
</figure>
|
|
{{- else -}}
|
|
{{- dict "Src" .Destination "Title" .Text "Resources" .Page.Resources | partial "plugin/image.html" -}}
|
|
{{- end -}}
|