Add weeknote for March 28-April 3, 2026; update now and upcoming pages
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>
This commit is contained in:
@@ -1 +1,8 @@
|
||||
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}"{{ with .Title }} title="{{ . }}"{{ else }} title="{{ $.Text }}"{{ end }} />
|
||||
{{- with .Title -}}
|
||||
<figure>
|
||||
<img src="{{ $.Destination | safeURL }}" alt="{{ $.Text }}" />
|
||||
<figcaption>{{ . }}</figcaption>
|
||||
</figure>
|
||||
{{- else -}}
|
||||
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" />
|
||||
{{- end -}}
|
||||
|
||||
Reference in New Issue
Block a user