vienalatina/themes/vienalatina/layouts/partials
Claude ff8effaf3a
Fix a build break I shipped in the last commit
`{{ partial "t.html" (dict "key" "by" "lang" .Site.Language.Lang) }}`
inside `{{ with .Params.author }}`, where the dot is the author *string*.
`.Site` on a string is an execution error, so the build fails — and with
--panicOnWarning in the pipeline, the whole publish fails with it. Same
again for `faq`, where the dot is a slice.

It would have gone red on your first deploy: Salvador's post carries an
author.

My build check passed because every post in the fixture had neither an
author nor a faq, so the two broken branches were never rendered. That
is the actual mistake — not the dot, which is an easy slip, but checking
a change to an optional branch with content that never takes it. The
fixture now carries a post with author, author_url, faq, event, image,
ai_generated and pinned all set at once.

The rule is now "always `$.`" rather than "think about where you are":
`$` is the page in every context, a bare `.` is only the page at top
level, and the difference is invisible until a post happens to have the
field. All sixteen call sites converted, and a test holds every one of
them to it — proved by putting the bug back and watching it fail.

Also the doc comment in t.html, which still claimed eleven keys. My
replacement for it last commit silently matched nothing: I asserted on
every other replacement in that script and not on this one.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
2026-10-14 13:19:08 +00:00
..
agenda-event.html The public agenda is a month too, and it has a year ahead 2026-10-14 10:52:12 +00:00
brand-head.html Identidad, tipografías, y tres herramientas de administración 2026-10-06 12:18:04 +00:00
breadcrumbs-schema.html A phone can use this site, and the way in is a button 2026-10-03 21:04:13 +00:00
faq-schema.html The bar, the share card, the writing box and subpages 2026-10-02 15:21:35 +00:00
footer.html Identidad, tipografías, y tres herramientas de administración 2026-10-06 12:18:04 +00:00
header.html Fix a build break I shipped in the last commit 2026-10-14 13:19:08 +00:00
lang-switcher.html Scaffold Hugo + Decap trilingual site from WordPress migration plan 2026-07-31 11:17:32 +00:00
month-name.html Two calendars: one for everybody, one for the members 2026-10-03 09:53:54 +00:00
og-image.html Share buttons, and a card that arrives with its picture 2026-10-09 08:47:42 +00:00
posts-ordered.html Fijar: moderators choose what gets read first 2026-10-13 18:24:32 +00:00
seo-head.html Posts in the order they were written, both halves 2026-10-13 18:13:01 +00:00
share.html Share buttons, and a card that arrives with its picture 2026-10-09 08:47:42 +00:00
site-name.html Identidad, tipografías, y tres herramientas de administración 2026-10-06 12:18:04 +00:00
site-tagline.html Identidad, tipografías, y tres herramientas de administración 2026-10-06 12:18:04 +00:00
t.html Fix a build break I shipped in the last commit 2026-10-14 13:19:08 +00:00
weekday-name.html A calendar a phone can read, and tap targets a thumb can hit 2026-10-06 18:41:56 +00:00