Half of this already existed and nothing said so. `threads.pinned` has
been in the schema since the board shipped, with an index on it and a
toggle route, but it was @admin_required, reachable only from inside a
thread, and Inicio ignored it.
Who. Moderators and above, on both halves. Curating what the public
reads is the whole of a moderator's job, and content.py has said so
since the queue was built. Locking a thread rides the same route and is
still an admin's: it stops named people saying anything more to each
other, which is power over people rather than over content, and this
codebase keeps those apart everywhere else.
What is stored. A moment, not a flag — several posts can be pinned and
the newest pin goes first, so the value is the order. `pinned:
'2026-10-13T12:00:00'` in a post's own frontmatter, written only when
true; `threads.pinned_at` beside the flag the wall already had, cleared
on unpinning so that pinning again puts it where a new pin belongs. One
key carrying both means `{{ if .Params.pinned }}` still reads as a
yes/no and nothing has to be kept in step with anything.
translate.py needs nothing: it copies the whole frontmatter and rewrites
only TRANSLATED_KEYS, so a pinned post is pinned in German too. Asserted
against the real list rather than assumed.
Two ways to pin a public post — the switch beside Publicar, and one
press in the Contenido list, because deciding what the site leads with
means looking at the list rather than opening each post to find out what
is in it. Both commit; the file is the record.
Migration 10 adds the columns and recreates the wall's index, which now
names pinned_at. `CREATE INDEX IF NOT EXISTS` leaves an existing index
exactly as it is, so without that a running server keeps the old
definition forever while a fresh install gets the new one. Nothing
breaks either way, which is the problem.
Checked rather than assumed: built with Hugo 0.135.0 and the pipeline's
flags, two pinned posts come out above a newer unpinned one and in
pin order rather than post order, with the pill on the cards and on the
article. And the wall rendered at 390px, where the pinned thread leads
and nothing overflows.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
Two different causes that look like one bug, and neither is fixed by
the other.
The site. The editor wrote `date: 2026-07-31` with no clock, so
everything published on one day was byte-identical in the field Hugo
sorts by — and Hugo fell through to its next key, the title. A day came
out alphabetised, permanently, because a rebuild changes nothing about
the files. None of the four post feeds applied an explicit sort either,
so all four inherited it.
`stamp()` attaches the clock, in `frontmatter_for`, which every
publishing path goes through. The day is still the one whoever publishes
chose and the URL still carries only the day, so nothing anyone linked
to moves. An edit keeps the time the file already had as long as the day
has not changed — a typo correction must not carry a year-old post to
the top of the page, which is what the hidden date_stamped field is for.
`partials/posts-ordered.html` is the other half: the order stated once
and called from the home page, the section list, llms.txt and the
BlogPosting block. `first N` goes on its result, never its input.
Both halves are needed, and I checked that rather than assuming it:
built with Hugo 0.135.0 and the pipeline's flags, two posts dated the
same day come out 11:00 before 09:00; with the clock removed and the
partial left in place, the alphabetically-first one is back on top.
The members area. Nothing had a tiebreak. `created_at` is
`datetime('now')` — one-second resolution — so two rows written in the
same second compared equal and SQLite was free to return them in either
order. Every ordering ends in the primary key now; activity.py had it
already and was the model.
Two disagreements went with it: Inicio's wall panel orders by `pinned`
like the wall, and its own-submissions panel uses the ranking
Publicaciones uses. The two moderation queues stay oldest-first on
purpose — a queue is not a feed.
And the public agenda sorts a day's events by the hour, which the
private calendar has done since it was written.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
A phone showed a column of thirty-one dates. That was my answer to a
seven-column grid being unreadable at 390px, and it stopped being a
calendar: you could not see that the 24th was a Saturday without
counting, and a month you cannot see the shape of is a list.
It is seven columns now at 320, 390 and 1280, measured rather than
reasoned about. Below 640px the cells are about 50px, the titles come
out of them, and a day with something in it shows a dot per event and
links to that day's block in a list under the grid. An anchor, so it
needs no script and cannot fail under the CSP.
It is also an <ol> on a grid rather than a <table>, and that is the
actual fix. A table brings tbody/tr/td with it, so every phone rule had
to name an element to undo them — and `.cal td` at (0,1,1) outranks
`.cal__pad` at (0,1,0), which is how an empty month came to draw four
blank boxes and nothing else. A grid has nothing to undo, which is why
the public agenda has never had the bug. The three CSS guards are
retargeted accordingly, and the padding-cell one is inverted: a pad is
no longer hidden, it is what puts the 1st under its own weekday.
Two more from the same screenshots:
The month arrows. `← Anterior / noviembre 2026 / Siguiente →` was three
runs of text in a flex row that could not wrap, so at 320px the next
month was simply unreachable. Two 44px circles with the label between
them, wrapping, both inside the viewport at every width.
Links leaving their card. `profiles.clean_links` accepts a 500-character
label and a URL is one word, so a bio ran to 519px on a 390px screen.
`.rich` — the box the text is typed into — has broken long words since
the editor shipped; the places that show what was typed did not. Both
the before and the after are measured in the browser, not asserted from
the stylesheet.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
Seven buttons under the title of every post and again after the text —
the reader who decides on sight and the one who decides at the end are
different people.
Four are ordinary links and work with scripting off: WhatsApp, Facebook,
Bluesky and Mastodon all take a URL that opens their own composer. The
other three cannot be, and the reason is worth writing down rather than
rediscovering: Signal has no web intent at all — it is a share target in
the operating system's sheet and nowhere else — and Instagram accepts no
link from anybody, by design, which is why every site with an Instagram
share button is really offering a copied link. Both call
navigator.share() where it exists and copy the address where it does
not, beside a plain «Copiar enlace» that always works.
Mastodon has no central address: the composer lives on whichever server
the reader has an account on. It asks once, keeps the answer, and
without scripting falls back to the association's own server.
The icons are simplified marks in one visual language rather than the
official logo files — reproducing those from memory gives something
subtly wrong, and subtly wrong looks worse than plainly simple. Each
carries its name for a screen reader and in `title` for a cursor.
**And the half that was actually broken.** og:image pointed at the
original upload: a photograph off a phone, two to five megabytes.
WhatsApp fetches preview images on a tight budget and gives up on a file
that size, so the card arrived as a title and a link with a blank where
the picture should be. Hugo copies static/ and processes assets/, and
only the second can be resized — so config.yaml mounts static/uploads
and static/brand into assets/ as well, leaving every existing URL and
everything the editor commits untouched, and seo-head.html now builds
the card: 1200x630, filled from the middle, 93 KB measured against a
22 MB source. The logo fallback is fitted rather than filled and keeps
its own format, because a wordmark cropped to a landscape card loses its
ends and a transparent PNG turned into JPEG lands on a black square.
og:image:width and :height go out with it, from the generated file so
they cannot disagree with it. Several clients draw the small card rather
than the large one when they would have to fetch the image to find out
how big it is.
Three guards, each verified by reintroducing its own bug: a button that
needs the script says so in the markup; a hidden button is actually
hidden (`[hidden]` is a user-agent rule and `display: inline-flex` beat
it, so all seven showed and three did nothing); and every encoded link
is marked safeURL, without which Go's escaper encoded it a second time
and WhatsApp opened with %253A spelled out.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
Three names, one site. vienalatina.net was in no configuration file at
all; it joins vielac.at in the block that redirects to vienalatina.com,
all four spellings together, because the rule is identical and one
comment explains them.
The runbook's §1.1 now says what actually has to change in those two
zones, which is four rows and not a copy of the .com: the two A records
move to this server, and **the two AAAA records are deleted**. That last
one is the part that bites — a browser with IPv6 prefers it, so changing
only the A records leaves the old site still appearing with nothing on
screen to explain why.
It also says what must not be touched: the MX, the four SRVs, autoconfig,
SPF and the DKIM row vienalatina.net carries all point at Hetzner's mail
server and have nothing to do with which machine serves the website.
And what must never be copied between zones: NS and SOA, which every zone
has its own of, and the ci and git A rows, which are vienalatina.com
subdomains with their own site blocks — a git.vielac.at would resolve
here, find no block, and fail the TLS handshake.
The block can be deployed before the names move. Nothing reaches it until
they do, and when they do the certificate is fetched on the first request
rather than after a second trip to the server.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
`/wp-cron.php` was reaching the Flask app. The matcher for old WordPress
paths listed four of them by name and missed that one, so it fell through
to the single-segment profile route — `/wp-cron.php` looks exactly like a
member's name — and was answered with a 400 by the CSRF hook. The old
install has been POSTing it every few minutes, which means the members
area was being woken up by the site it replaced. The matcher is now
`/wp-*`, after the uploads rule and never before it, so the migrated
pictures still map.
`/categoria/…` was redirecting to `/categories/…`, which stopped existing
when the taxonomies were removed: one dead address forwarding to another.
It goes home now.
vielac.at is the old site's own domain rather than a spare name, which is
worth saying in the file that redirects it: it is the address in every
link shared before the cutover and every search result not yet recrawled.
An old WordPress path arriving there lands on vienalatina.com and is
caught by the 301s further down — one set of rules rather than two.
Deleted with it: `scripts/wp-to-hugo.py`, whose own docstring called it
disposable and whose migration happened; its section in the README, which
now says what remains of that site instead; and the WordPress core
alignment CSS, which no content uses and nothing in the editor can
produce.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
Four changes to the forms people write in.
**The title is optional**, and says nothing about it: a field labelled
«(opcional)» is a field asking to be filled in. An untitled post is
«Sin Título» and the next is «Sin Título 2», so a list of them can still
be told apart and linked to. apps/board/titles.py holds the rule.
The numbering is done per place, against what is already there. The wall
and the queue count every title in the table, deleted rows included — a
number that comes back is a thread that looks like one somebody
remembers reading. A public post counts the *filenames* in its folder
instead, because that is what collides in a repository: two untitled
posts on one day would both be `<fecha>-sin-titulo.es.md`, and the
second would have failed as "somebody else saved this file while you
were editing it", which is a message about a conflict that never
happened. Clearing the title on an edit excludes the file being edited
from its own check, so saving three times does not rename it three
times.
**The event box folds away.** Most posts are not events, and three date
pickers between the title and the text are three fields most people
scroll past. A <details>, like the account menu, so no script is
involved; it opens by itself when the post already has a date.
**The AI disclosure is a switch** rather than a checkbox — what it says
is a statement about the text, not a detail of the form, and it should
look like something that is on or off. Drawn entirely from the
checkbox's own :checked state: under a policy with no 'unsafe-inline' a
control that needs a script is a control that silently does nothing. The
input stays in the tab order and keeps its label, so it works from a
keyboard, and it is anchored inside its own label rather than left
adrift over the page.
**Cancelar is a button**, and Vista previa beside it is shaped the same:
leaving is the other half of a decision and should be the same size as
the half next to it. Quiet rather than filled, so the eye still knows
which one publishes.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
The second name redirects to vienalatina.com, both spellings in one
block beside the www one it copies. 301 rather than 302, so a search
engine folds the two names into one site instead of indexing them as
duplicates, and {uri} so a link shared to vielac.at/page/agenda/ lands
on the agenda rather than on the home page.
The runbook gains §1.1: the two A records go in that domain's zone
editor — not in Konsole H's nameserver fields, which hand the whole zone
to another provider and turn off the editor you want — and they go in
*before* Caddy is reloaded, because that is when Let's Encrypt is asked
for the certificate. With `caddy validate` before every reload, which is
the one command standing between a typo in that file and vienalatina.com
going down with it.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
A switch beside the button that publishes — on the editor, on a member's
proposal and on a wall thread — and a pill next to the date wherever the
post is read: the article, the cards in the listings, the thread, the
wall's list, and the moderator's review screen. Next to the date rather
than under the text, because a disclosure somebody meets after reading
the thing is not a disclosure.
Where it lives follows what the thing is. A public post carries
`ai_generated: true` in its own frontmatter, written only when true —
the file in the repository is the record, and `ai_generated: false` on
every post ever written is noise in git and a question in the mind of
whoever reads one. A thread carries a column. A proposal carries a
column too, and that is the one place it has to be moved by hand: a
proposal is a draft in SQLite until it is approved, so the frontmatter
it will end up in does not exist while the decision is being made, and
losing it there would lose it exactly when the text stops being private.
`content.edit` loads the flag back into the form, for the same reason
the byline is carried through: a field read but not written back is a
field that one corrected typo silently removes.
The pipeline needs nothing. translate.py copies the whole frontmatter
and rewrites only TRANSLATED_KEYS, so the flag reaches the German and
Portuguese siblings by itself — right rather than lucky, since a
translated post was still machine-written. Asserted against the real
list, so a key quietly added to it fails the suite.
Migration 9: three plain ADD COLUMNs, tested against a database with a
thread, a proposal and a cached post already in it.
The three words are in partials/t.html with the theme's other labels.
This is also the shape the EU AI Act's Article 50 asks for, which is
worth knowing for whoever installs this for a second organisation.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
The box is now the finished text: bold is bold, a heading is a heading, a
list is a list. No preview pane — a second box beside the first is the
wrong shape on a phone — and nothing is sent anywhere while anybody
types, so the round trip the old «Vista previa» button made on every
press is gone.
Markdown is still the only thing stored, which is what keeps the file in
git, the translation pipeline, Decap and the XSS defence exactly as they
were. The two directions are deliberately not symmetrical:
opening — the server renders the stored markdown into a <template>
the editor adopts, so there is no markdown parser in the
browser and no second opinion about what text means;
saving — the browser walks a closed set of elements back into
markdown. Anything else contributes its text and nothing
more, which is why a paste brings no markup in.
Three heading levels (## ### ####), bold, italic, strikethrough, two
kinds of list, quote, link and clear formatting on the four post boxes;
bold, italic, link and clear on the short ones. A «Markdown» button
swaps to the raw text and back — the escape hatch, and the way to write
a table. With JavaScript off the plain textarea is still there and still
the field that submits; verified by driving the form with scripting
disabled.
Headings had no styles anywhere. `.article-single__body` styled `p` and
nothing else, so three levels would have rendered as three identical
bold lines. Both stylesheets now carry the ladder, along with lists,
quotes and rules.
Two renderer findings, both of which richer writing makes worse:
- config.yaml set Goldmark `unsafe: true`, for WordPress content that
no longer exists — no file under content/ holds a tag. A member's
proposal containing `<img src=x onerror=…>` renders as visible
characters in the moderation queue, which is the one screen a
moderator judges it on, and that flag is what would have run it on
the live site. Off now; the built output is byte-identical.
- A line break meant two things: `breaks: True` here, Goldmark's
hardWraps off there. Turning hardWraps on was the obvious fix and
the wrong one — the files are hard-wrapped at 78 characters, so it
would break every sentence in half. Instead there are two renderers,
one per destination, and the editor writes the hard break CommonMark
means (two spaces) so it survives either way.
Tested by running the serializer itself, in node, against the same
static/board.js the browser loads: 26 cases including the ones that go
wrong — a pasted span, a script, an empty box, a line starting with «-»,
a javascript: href — plus a round trip asserting markdown → HTML →
markdown renders identically for ten real documents.
Then by typing in a browser at 390px with touch emulation, which is what
found the one defect no fixture predicted: pressing Enter in a list
wraps it in a <div>, and reading that as a paragraph ran «uno» and «dos»
together into one word.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
The private calendar rendered as six hundred pixels of nothing on a phone.
The cause was two adjacent rules in board.css with opposite outcomes:
.cal, .cal tbody, .cal tr, .cal td { display: block } /* (0,1,1) */
.cal__pad { display: none } /* (0,1,0) */
.cal__day:not(:has(.cal__event)) { display: none } /* (0,2,0) */
`.cal td` outranks `.cal__pad`, so every cell belonging to a neighbouring
month stayed on screen as a 92px empty box; `.cal__day:not(:has(…))`
outranks `.cal td`, so every real day disappeared. A month with no events
drew four blank boxes and nothing else, with correct HTML throughout —
which is why reading the file looked right and no test could see it.
Both calendars are now a column of every day of the month below 640px,
with the weekday beside the number (the column header is hidden there),
the days carrying something standing out, and a line saying so when the
month is empty. The public agenda gets the same shape deliberately: the
private calendar lists the public events, and a member moves between the
two. Every rule that decides `display` now names its cell's own class.
Measured rather than reasoned about, in headless Chromium at 320 and 390
across all 22 members-area screens and the public site in three languages:
- padding cells 0px tall, 31 of 31 days drawn, no horizontal overflow
- the ☰ ran off the right edge of a 320px Portuguese home page, because
«Comunidade» is three letters longer than «Comunidad»; the bar now
gives way at 360px
- the navigation links were 37x17, the calendar's + was 7x15, the footer
links 16px tall. A `pointer: coarse` block in each stylesheet raises
them to 44, padding only, so the desktop is untouched. Links inside a
sentence are left alone, as WCAG exempts them.
Registro de actividad and Contenido stop being a sideways-scrolling table
on a phone and stack one card per row, the two columns that do not
describe themselves labelled from `data-label`.
Guards: three stylesheet tests that compute specificity and run the
cascade for a padding cell, a day cell and the weekday label, in both
stylesheets — each verified by putting the shipped rules back. Plus three
request-level tests: an empty month says so and still draws its 31 days,
a month with events does not claim to be empty, and every day carries the
right weekday.
Members area only to deploy — no migration, no schema change — except the
agenda and the stylesheet, which reach the site through the pipeline.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn