Improve example of image render hook

This commit is contained in:
Cyrus Yip authored and GitHub committed 2024-07-25 07:33:21 -07:00
1 parent 60a9306afa
commit 0300750f21
1 file changed
+1 -1
+1 -1
View File
@@ -103,7 +103,7 @@ To render standalone images within `figure` elements:
<img src="{{ .Destination | safeURL }}"
{{- with .Text }} alt="{{ . }}"{{ end -}}
>
<figcaption>{{ .Title }}</figcaption>
{{- with .Title }}<figcaption>{{ . }}</figcaption>{{ end -}}
</figure>
{{- else -}}
<img src="{{ .Destination | safeURL }}"