mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
Improve example of image render hook
This commit is contained in:
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user