We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90e3e0a commit 14b42c8Copy full SHA for 14b42c8
layouts/_default/_markup/render-image.html
@@ -9,7 +9,7 @@
9
{{ $border := index $params "border" }}
10
11
12
-<div
+<figure
13
x-data="{ zoom: false }"
14
@click="zoom = ! zoom"
15
class="cursor-pointer hover:opacity-90"
@@ -27,6 +27,9 @@
27
{{ with .Title }}title="{{ . }}"{{ end }}
28
class="rounded mx-auto{{ with $border }} border border-divider-light dark:border-divider-dark{{end}}"
29
/>
30
+ {{ with .Title }}
31
+ <figcaption class="text-gray-light dark:text-gray-dark">{{ . }}</figcaption>
32
+ {{ end }}
33
<template x-teleport="body">
34
<div
35
x-show="zoom"
@@ -48,4 +51,4 @@
48
51
49
52
</div>
50
53
</template>
-</div>
54
+</figure>
0 commit comments