Your screenshot had no navigation at all: brand, three language letters, posts.
The cause is one missing button, and the CSS has been waiting for it since the
WordPress port. `main.css` hid `.site-bar__pages` below 768px and showed it
again on a class, and styled a `.site-bar__hamburger` — the panel's styles, the
button's styles and the animated ✕ were all ported, and the button itself never
was. Nothing in the theme has ever set that class. So for three phases every
phone saw the site with no menu, with every rule involved correct and every
selector pointing at an element that did not exist.
The toggle is a visually hidden checkbox immediately before the menu, with the ☰
as a `<label>` for it in the bar, and one rule doing the work. No JavaScript.
Not `<details>`, which is this project's usual answer and does not work here: on
desktop the menu has to be open and horizontal, and current Chrome hides a
closed `<details>`'s content with `content-visibility` on `::details-content`,
which a `display` rule on the child no longer overrides. A checkbox behaves the
same in every engine, keeps its place in the tab order and keeps its label.
`test_templates.py` now fails if the stylesheet hides the menu behind a state
the header does not carry — the shape of bug this suite keeps meeting, and the
first time it is guarded rather than found by looking.
**Comunidad is a button in the bar** at every width, brand-coloured through the
tokens Marca writes, instead of a word in a menu that on a phone would not open.
Its three translations moved from the `menus.main` blocks into `t.html`: the URL
is the same in every language, so the menu entry was only carrying a label. The
language switcher is rendered twice, in the bar and at the foot of the panel —
a brand, a button, a ☰ and three language letters do not fit across 360px and
CSS cannot move an element between the two.
**Categories and tags are gone**, both taxonomies. Nothing downstream had to
change: the agenda, the event page, the .ics and the private calendar already
keyed on `event_date` rather than on the category, which I checked before
removing anything. The category was only a gate in the editor, so the gate goes
too — **a post carrying a date is an event**, with nothing to tick first and no
way left to say "this is an event" and then not say when. Migration 6 drops the
two columns that held the terms.
`taxonomies: {}` rather than no `taxonomies` key: leaving the key out restores
Hugo's own defaults, which are tags and categories, so deleting the block built
the very pages it was meant to remove.
Also here, found while looking at the output rather than assumed: the breadcrumb
schema emitted a subpage's parent and the page itself both at position 2, and
the members area's six-section nav had no wrap and no scroll, so `/comunidad/`
on a phone scrolled sideways. It wraps now — two lines showing all six, where a
swipe strip would have left Calendario and Gestión off the edge with nothing to
say they were there.
Verified by rendering: headless Chromium at 320px, 390px and 1280px, before and
after opening the menu, and the members area at 390px. No horizontal overflow at
any of them. 548 tests pass; the build is clean with the pipeline's own flags.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
75 lines
3.0 KiB
HTML
75 lines
3.0 KiB
HTML
{% extends "base.html" %}
|
|
{% from "_person.html" import person %}
|
|
{% block title %}{{ item.title }}{% endblock %}
|
|
|
|
{% block main %}
|
|
<div class="feed-head">
|
|
<h1>{{ item.title }}</h1>
|
|
<a class="linkish" href="{{ url_for('submissions.index') }}">Volver</a>
|
|
</div>
|
|
|
|
<article class="card">
|
|
<div class="card__meta">
|
|
<span class="tag tag--{{ item.state }}">{{ labels[item.state] }}</span>
|
|
<span>{{ person(item.author, item.author_login) }}</span> · <time>{{ item.created_at }}</time>
|
|
{% if item.event_date %} · <span>Evento el {{ item.event_date }}</span>{% endif %}
|
|
</div>
|
|
{% if item.description %}<p class="muted">{{ item.description }}</p>{% endif %}
|
|
{% if item.photo_name %}
|
|
<img class="attachment"
|
|
src="{{ url_for('submissions.photo', stored_name=item.photo_name) }}"
|
|
alt="Imagen de «{{ item.title }}»">
|
|
{% endif %}
|
|
<div class="prose">{{ body_html }}</div>
|
|
</article>
|
|
|
|
{% if item.state == 'rejected' and item.note %}
|
|
<article class="card">
|
|
<h2>Motivo de la devolución</h2>
|
|
<p>{{ item.note }}</p>
|
|
{% if item.reviewer %}<p class="muted small">— {{ item.reviewer }}, {{ item.reviewed_at }}</p>{% endif %}
|
|
</article>
|
|
{% endif %}
|
|
|
|
{% if item.state == 'approved' %}
|
|
<p class="muted">
|
|
Publicado{% if item.reviewer %} por {{ item.reviewer }}{% endif %}{% if item.published_path %} en <span class="mono">{{ item.published_path }}</span>{% endif %}.
|
|
La traducción al alemán y al portugués tarda un par de minutos.
|
|
</p>
|
|
{% endif %}
|
|
|
|
{% if can_moderate and item.state != 'approved' %}
|
|
{# Approve and reject are two forms rather than one with a choice: they are not
|
|
variations of the same action, and the reason is required for only one. #}
|
|
<form class="card" method="post"
|
|
action="{{ url_for('submissions.approve', submission_id=item.id) }}"
|
|
data-confirm="Se publicará en vienalatina.com con el nombre de {{ item.author }}. ¿Seguro?">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
|
<p class="muted small">
|
|
Al aprobar se publica tal cual está, firmado por {{ item.author }} — en el
|
|
sitio y en el historial del repositorio.
|
|
</p>
|
|
<button class="btn" type="submit">Aprobar y publicar</button>
|
|
</form>
|
|
|
|
<form class="card" method="post" action="{{ url_for('submissions.reject', submission_id=item.id) }}">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
|
<label for="note">Devolver con un motivo</label>
|
|
<textarea id="note" name="note" rows="3"
|
|
placeholder="Qué hay que cambiar para que se pueda publicar."></textarea>
|
|
<button class="linkish" type="submit">Devolver al autor</button>
|
|
</form>
|
|
{% endif %}
|
|
|
|
{% if mine and item.state != 'approved' %}
|
|
<div class="actions">
|
|
<a class="btn" href="{{ url_for('submissions.edit', submission_id=item.id) }}">Editar</a>
|
|
<form method="post" action="{{ url_for('submissions.withdraw', submission_id=item.id) }}"
|
|
data-confirm="Se borrará la propuesta. ¿Seguro?">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
|
<button class="linkish linkish--danger" type="submit">Retirar</button>
|
|
</form>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|