mirror of
https://github.com/idanoo/m2.nz.git
synced 2024-11-26 18:25:12 +00:00
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 -}}
|