m2.nz/themes/LoveIt/layouts/_default/_markup/render-image.html

11 lines
420 B
HTML
Raw Normal View History

2022-05-08 06:47:31 +00:00
{{- if .Title -}}
<figure>
2024-04-07 02:32:03 +00:00
{{- dict "Src" .Destination "Title" .Text "Caption" .Title "Linked" true "Resources" .Page.Resources | partial "plugin/img.html" -}}
2022-05-08 06:47:31 +00:00
<figcaption class="image-caption">
{{- .Title | safeHTML -}}
</figcaption>
</figure>
{{- else -}}
2024-04-07 02:32:03 +00:00
{{- dict "Src" .Destination "Title" .Text "Resources" .Page.Resources | partial "plugin/img.html" -}}
2022-05-08 06:47:31 +00:00
{{- end -}}