Improve image markup
This commit is contained in:
parent
7c1f5f900f
commit
52f3cfc3c2
2 changed files with 12 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
<p class="md-img {{ with .Text }}with-text{{ end }}">
|
||||
<figure class="md-img {{ with .Text }}with-text{{ end }}">
|
||||
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" {{ with .Title }} title="{{ . }}"{{ end }} loading="lazy" />
|
||||
</p>
|
||||
{{ with .Text }}<p class="md-img-text">{{ . }}</p>{{ end }}
|
||||
{{ with .Text }}<figcaption class="md-img-text">{{ . }}</figcaption>{{ end }}
|
||||
</figure>
|
Loading…
Add table
Add a link
Reference in a new issue