aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-15 13:05:07 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-15 13:05:07 +0300
commitf7c375053d0dd86217e5db628a1e81200d13659f (patch)
treed48d2a534ae1604d9909c071f17ceb590a4fdfe1 /layouts/_default
parentf7c3137844795426041a6e1577296d2b803028aa (diff)
Auto-commit 2024-12-15
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/_markup/render-image.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html
new file mode 100644
index 0000000..93e530d
--- /dev/null
+++ b/layouts/_default/_markup/render-image.html
@@ -0,0 +1,8 @@
+<img
+ class="d-block img-fluid mb-2 rounded border shadow"
+ max-width="800"
+ loading="lazy"
+ src="{{ .Destination | safeURL }}"
+ {{- with .Text }} alt="{{ . }}"{{ end -}}
+ {{- with .Title }} title="{{ . }}"{{ end -}}
+>