www/themes/LoveIt/layouts/_default/_markup/render-image.html
2020-05-28 14:55:57 +02:00

10 Zeilen
358 B
HTML

{{- with .Title -}}
<figure>
{{- dict "src" $.Destination "alt" $.Text "caption" . "linked" true | partial "plugin/image.html" -}}
<figcaption class="image-caption">
{{- . | safeHTML -}}
</figcaption>
</figure>
{{- else -}}
{{- dict "src" .Destination "alt" .Text | partial "plugin/image.html" -}}
{{- end -}}