Three things, all on the public half. The translation pass. scripts/translate.py walked content/ only, so data/ had never been touched by it: a tagline typed in Spanish stayed Spanish forever, and so would a label. It now fills the languages Gestión → Textos left empty, through the provider that already exists — a label is prose with no markup, and translate_text already protects «Viena Latina» as a term. The translations go in their own file. data/ui.yaml is regenerated wholesale from the override store on every save, so anything the pipeline wrote into it would be destroyed by the next person to press Guardar, and the members area cannot write back into the repository's copy. Two files, each with one writer that owns it, and the split names the provenance out loud. Each entry records the Spanish it came from. Reword the Spanish and the German stops matching its source and is redone; leave it alone and nothing is recomputed — so a push that changed no label neither rewrites the file nor loads a 237MB model to find that out. t.html's order becomes override → automatic → shipped → Spanish. The automatic file only ever holds a key whose Spanish was overridden, so it beats the shipped word without displacing one nobody touched: rename «Inicio» to «Escritorio» and the shipped «Start» stops being a translation of anything. Verified in a real build — es Escritorio, de Schreibtisch, pt-br Escrivaninha, from one override and one auto file. The assistive labels. Five aria-labels and the breadcrumb's «Inicio» were Spanish on the German and Portuguese pages too. A German screen-reader user hearing «Secciones» is the same bug as a German menu saying «Inicio», just quieter — and the breadcrumb is the one Google renders in search results. And a bug this found rather than caused. site-name.html exists so Identidad can rename the site, and eleven places read .Site.Title or .Site.Params.description directly, going round it. The human-facing surfaces had been converted and the machine-facing ones had not, so a rename updated every og: tag and left the old name in every JSON-LD publisher, author and isPartOf, in llms.txt and in the .ics product id — the home page emitted two blocks that openly disagreed. All eleven read through the partials now; a guard fails on a twelfth, proved by putting one back. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
34 lines
1.6 KiB
HTML
34 lines
1.6 KiB
HTML
{{/* BreadcrumbList — where this page sits, for a search result and for an answer
|
|
engine deciding what a page is about.
|
|
|
|
Two levels: Inicio → this. An article used to carry its category in the
|
|
middle; there are no categories any more, and a post is a child of the home
|
|
page. Nothing is rendered visibly: the site is shallow enough that a visible
|
|
trail would be clutter, while the machine-readable one still answers "what
|
|
is this page part of".
|
|
|
|
A subpage says Inicio → its parent → itself, read from the same `parent`
|
|
basename the menu is built from, so the trail and the menu cannot disagree. */}}
|
|
{{ $items := slice (dict "@type" "ListItem" "position" 1 "name" (partial "t.html" (dict "key" "home" "lang" $.Site.Language.Lang)) "item" .Site.Home.Permalink) }}
|
|
{{ $position := 2 }}
|
|
|
|
{{ if ne .Section "post" }}
|
|
{{ with .Params.parent }}
|
|
{{ $base := . }}
|
|
{{ range where $.Site.RegularPages "Section" "page" }}
|
|
{{ with .File }}{{ if eq .ContentBaseName $base }}
|
|
{{ $items = $items | append (dict "@type" "ListItem" "position" $position "name" $.Page.Title "item" $.Permalink) }}
|
|
{{/* Was missing: only the category branch bumped the position, so a subpage
|
|
emitted its parent and itself both at position 2. */}}
|
|
{{ $position = add $position 1 }}
|
|
{{ end }}{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ $items = $items | append (dict "@type" "ListItem" "position" $position "name" .Title "item" .Permalink) }}
|
|
<script type="application/ld+json">{{ (dict
|
|
"@context" "https://schema.org"
|
|
"@type" "BreadcrumbList"
|
|
"itemListElement" $items) | jsonify (dict "indent" " ") | safeJS }}</script>
|