add markdown image rendering hook git-pure
authorNikita Shubin <nikita.shubin@maquefel.me>
Fri, 29 Mar 2024 09:29:09 +0000 (12:29 +0300)
committerNikita Shubin <nikita.shubin@maquefel.me>
Fri, 29 Mar 2024 09:29:09 +0000 (12:29 +0300)
Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me>
layouts/_default/render-image.html [new file with mode: 0644]

diff --git a/layouts/_default/render-image.html b/layouts/_default/render-image.html
new file mode 100644 (file)
index 0000000..f005215
--- /dev/null
@@ -0,0 +1,3 @@
+<p class="md__image">
+  <img src="../{{ .Destination | safeURL }}" alt="{{ .Text }}" {{ with .Title}} title="{{ . }}"{{ end }} />
+</p>