Render hook updated to wrap images with titles in <figure>/<figcaption> instead of using title attributes, giving visible captions and cleaner accessibility. Applies retroactively to all existing posts. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
9 lines
225 B
HTML
9 lines
225 B
HTML
{{- with .Title -}}
|
|
<figure>
|
|
<img src="{{ $.Destination | safeURL }}" alt="{{ $.Text }}" />
|
|
<figcaption>{{ . }}</figcaption>
|
|
</figure>
|
|
{{- else -}}
|
|
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" />
|
|
{{- end -}}
|