blog/themes/farallon/layouts/_default/_markup/render-image.html

8 lines
360 B
HTML

{{ if .Text }}
<figure class="grap--figure">
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" {{ with .Title}} title="{{ . }}" {{ end }} />
<figcaption class="imageCaption">{{ .Text | safeHTML }}</figcaption>
</figure>
{{ else }}
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" {{ with .Title}} title="{{ . }}" {{ end }} />
{{ end }}