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:
Eric Wagoner
2026-04-12 23:45:28 -04:00
parent aa6ed6e81a
commit 9c53b0edf1
10 changed files with 91 additions and 10 deletions

View File

@@ -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 -}}