aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default/_markup/render-image.html
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-15 15:10:57 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-15 15:10:57 +0300
commit314fd719d318ebba7c85e50e621c021179054290 (patch)
treef4c6e2f71bfe0d489933c4ba34d5d04d1ba6d117 /layouts/_default/_markup/render-image.html
parent47fc02a8c71af4926148beb5d5cc0fc221aa5429 (diff)
Auto-commit 2024-12-15
Diffstat (limited to 'layouts/_default/_markup/render-image.html')
-rw-r--r--layouts/_default/_markup/render-image.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html
index b2ccc08..3d15a11 100644
--- a/layouts/_default/_markup/render-image.html
+++ b/layouts/_default/_markup/render-image.html
@@ -1,5 +1,5 @@
<figure class="figure">
-
+<a href="{{ .Destination | safeURL }}">
<img
class="d-block img-fluid mb-2 rounded border shadow"
max-width="800"
@@ -8,6 +8,7 @@
{{- with .Text }} alt="{{ . }}"{{ end -}}
{{- with .Title }} title="{{ . }}"{{ end -}}
>
+</a>
{{- with .Title }}<figcaption class="figure-caption">{{.}}</figcaption>{{end -}}
</figure> \ No newline at end of file