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

8 lines
360 B
HTML
Raw Normal View History

2024-05-06 12:00:46 +08:00
{{ 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 }}