aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default/_markup
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/_markup')
-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