vienalatina/apps/board
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
..
static Textos: the words are data now, starting with the navigation 2026-10-14 12:35:10 +00:00
strings Textos: the words are data now, starting with the navigation 2026-10-14 12:35:10 +00:00
templates Textos: the words are data now, starting with the navigation 2026-10-14 12:35:10 +00:00
tests Fix a build break I shipped in the last commit 2026-10-14 13:19:08 +00:00
__init__.py Add a members area: roles and an internal board 2026-09-22 10:57:18 +00:00
activity.py Textos: the words are data now, starting with the navigation 2026-10-14 12:35:10 +00:00
app.py Textos: the words are data now, starting with the navigation 2026-10-14 12:35:10 +00:00
auth.py The bar, the share card, the writing box and subpages 2026-10-02 15:21:35 +00:00
board.py Fijar: moderators choose what gets read first 2026-10-13 18:24:32 +00:00
brand.py Identidad, tipografías, y tres herramientas de administración 2026-10-06 12:18:04 +00:00
content.py Fijar: moderators choose what gets read first 2026-10-13 18:24:32 +00:00
db.py A superadministrator above the responsable 2026-10-06 11:55:41 +00:00
events.py A superadministrator above the responsable 2026-10-06 11:55:41 +00:00
gitea.py Two calendars: one for everybody, one for the members 2026-10-03 09:53:54 +00:00
home.py Textos: the words are data now, starting with the navigation 2026-10-14 12:35:10 +00:00
identity.py Identidad, tipografías, y tres herramientas de administración 2026-10-06 12:18:04 +00:00
invites.py Let members get a password of their own 2026-09-25 17:49:39 +00:00
mail.py Let members get a password of their own 2026-09-25 17:49:39 +00:00
media.py Identidad, tipografías, y tres herramientas de administración 2026-10-06 12:18:04 +00:00
members.py Textos: the words are data now, starting with the navigation 2026-10-14 12:35:10 +00:00
messages.py Posts in the order they were written, both halves 2026-10-13 18:13:01 +00:00
migrations.py Fijar: moderators choose what gets read first 2026-10-13 18:24:32 +00:00
passwords.py One front door: the members area owns its own logins 2026-09-29 08:25:25 +00:00
profiles.py A phone can use this site, and the way in is a button 2026-10-03 21:04:13 +00:00
render.py The writing box shows the formatting, and raw HTML stops reaching the site 2026-10-06 20:07:18 +00:00
requirements.txt Write the site from the members area instead of Decap 2026-09-25 15:07:31 +00:00
schema.sql Textos: the words are data now, starting with the navigation 2026-10-14 12:35:10 +00:00
security.py A superadministrator above the responsable 2026-10-06 11:55:41 +00:00
status.py Estado del sistema was lying about the backups 2026-10-06 14:03:30 +00:00
strings.py Textos: the words are data now, starting with the navigation 2026-10-14 12:35:10 +00:00
submissions.py Posts in the order they were written, both halves 2026-10-13 18:13:01 +00:00
titles.py A title nobody has to write, a fold, a switch and a button 2026-10-06 20:58:33 +00:00
ui.py Textos: the words are data now, starting with the navigation 2026-10-14 12:35:10 +00:00
uploads.py Phase C: private messages, with blocking and photos 2026-09-28 16:10:52 +00:00
wsgi.py Add a members area: roles and an internal board 2026-09-22 10:57:18 +00:00