Use image partial to render markdown images

This commit is contained in:
Dawid Wróbel 2024-05-27 19:07:09 +02:00
parent 516bd88ca6
commit 38a7aa3dee

View File

@ -1 +1 @@
<img loading="lazy" src="{{ .Destination | safeURL }}" alt="{{ .Text }}" {{ with .Title}} title="{{ . }}" {{ end }} /> {{ partial "image.html" (dict "src" (.Destination | safeURL) "alt" .PlainText "caption" .Title "page" .Page "lazy" true) }}