mirror of https://github.com/jkjoy/hugoblog.git
8 lines
360 B
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 }}
|