Add render-image template
This commit is contained in:
parent
a42000fe63
commit
7c1f5f900f
3 changed files with 18 additions and 0 deletions
4
layouts/_default/_markup/render-image.html
Normal file
4
layouts/_default/_markup/render-image.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
<p 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 }}
|
Loading…
Add table
Add a link
Reference in a new issue