render-image.html (382B)
1 {{- if .IsBlock -}} 2 <figure> 3 <img src="{{ .Destination | safeURL }}" 4 {{- with .PlainText }} alt="{{ . }}"{{ end -}} 5 > 6 {{- with .Title }}<figcaption>{{ . }}</figcaption>{{ end -}} 7 </figure> 8 {{- else -}} 9 <img src="{{ .Destination | safeURL }}" 10 {{- with .PlainText }} alt="{{ . }}"{{ end -}} 11 {{- with .Title }} title="{{ . }}"{{ end -}} 12 > 13 {{- end -}}