**A signed-in member sees the members area from anywhere.** A slim bar above the
public header, with the same five sections /comunidad/ has. Those pages are
files on disk and get cached, so it is drawn in the browser: memberbar.js asks
/comunidad/sesion.json who is reading, and that endpoint is the only thing that
decides — a visitor is told `{"signed_in": false}` and the answer is never
cached. Sign-in also sets vl_sesion=1, a cookie holding one digit that scripts
can read, and without it the script makes no request at all: a stranger reading
one article costs the app nothing. It is a hint, never a credential — the
session cookie stays HttpOnly and signed, and a forged hint earns a reply saying
you are not signed in. Comunidad is now in the public menu in all three
languages, signed in or not.
**The public menu is built from the pages.** It was three names per language in
config.yaml, so a page published through Contenido never appeared on the site at
all and the German and Portuguese menus had to be kept in step by hand. Pages
carry `parent` (another page's basename — the one translate.py already uses to
pair siblings, so it holds in all three languages) and `weight`, both chosen in
the editor, and header.html builds two levels from them. URLs do not change: a
subpage is still /page/<slug>/, only the menu nests, so nothing in the Caddyfile
or the pipeline learns about folders. The dropdown is the theme's own, ported
from WordPress — hover, focus-within, inline on a phone, no script. A parent that
has been deleted is kept and labelled rather than silently dropped on the next
save.
**Sharing and the rest of SEO/GEO.** The groundwork was already here — hreflang,
Open Graph, Twitter card, BlogPosting, llms.txt, robots.txt naming the AI
crawlers — so this closes the gaps. Static pages had *none* of it and shared as
bare links; they now carry WebPage schema and the full set of tags. Both branches
gain og:image with an alt and a twitter:image, falling back to params.defaultImage
(empty until there is a logo, which is the one line to fill in then). The home
page gains Organization with areaServed Wien and a sameAs list; posts and pages
gain BreadcrumbList, and an article's structured data now carries the author's
profile URL. An optional FAQ — `pregunta|respuesta` per line — renders at the
foot of the page and as FAQPage schema, because current guidance for generative
engines puts exactly that shape at the top of what gets quoted, and schema
describing something invisible is what search engines penalise. translate.py
carries both new fields: image_alt joins the translated keys, and faq is
translated half by half so the separator survives.
**The writing boxes.** A markdown toolbar and a Vista previa on every box where
somebody writes prose, opted in with data-markdown. The preview POSTs to
/comunidad/previsualizar and renders with render.to_html — the same function the
board and the site use, so it cannot promise something publishing will not
deliver; a markdown parser in the browser would be a second opinion about what
somebody's text means. Choosing a picture now shows a thumbnail with its name and
size before anything is uploaded, which is the only reason `blob:` joins img-src:
a handle to bytes already in the page, reaching no network.
All of it ours, no dependency added, under a policy that loads scripts from this
origin only. Verified by building the site with Hugo 0.135, the version the
pipeline runs: the nested menu, the page's share tags, the FAQ schema matching
the rendered section, and llms.txt listing the pages.
463 tests pass.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
120 lines
4.0 KiB
YAML
120 lines
4.0 KiB
YAML
# Viena Latina — Hugo site configuration
|
|
# Three languages: Spanish (default, at /), German (/de/), Brazilian Portuguese (/pt-br/).
|
|
# Siblings pair by filename basename: mi-articulo.es.md ↔ mi-articulo.de.md ↔ mi-articulo.pt-br.md
|
|
|
|
baseURL: "https://vienalatina.com/"
|
|
title: "Viena Latina"
|
|
theme: "vienalatina"
|
|
|
|
defaultContentLanguage: "es"
|
|
defaultContentLanguageInSubdir: false
|
|
|
|
# Date-scoped so two posts can share a title without fighting over one URL.
|
|
# `:slug` falls back to the title when front matter sets none, so a bare
|
|
# "/:slug/" mapped every post called "Hola mundo" onto /hola-mundo/; Hugo wrote
|
|
# both documents into that one index.html and the page rendered as two stacked
|
|
# copies of the site, with no error anywhere. Community blogs repeat titles
|
|
# constantly ("Resumen del mes"), so the date carries the uniqueness. The day is
|
|
# part of it because the two posts that exposed this were eleven days apart in
|
|
# the same month; only same-title-same-day now collides, and the build guard in
|
|
# .woodpecker.yml fails that loudly instead of shipping it.
|
|
permalinks:
|
|
post: "/:year/:month/:day/:slug/"
|
|
|
|
taxonomies:
|
|
category: "categories"
|
|
tag: "tags"
|
|
|
|
languages:
|
|
es:
|
|
languageCode: "es"
|
|
languageName: "Español"
|
|
weight: 1
|
|
params:
|
|
description: "Comunidad latinoamericana en Viena — turismo, cultura, gastronomía, comunidad y comercio."
|
|
# Only the two ends of the menu live here. Everything between them is built
|
|
# from the pages themselves by partials/header.html — so a page published
|
|
# from the members area appears on the site, with its own translated title,
|
|
# instead of needing three edits in this file. Weight decides the side:
|
|
# under 5 goes before the pages, 5 or more after them.
|
|
menus:
|
|
main:
|
|
- name: "Inicio"
|
|
url: "/"
|
|
weight: 1
|
|
# The way into the members area, in the menu for everybody: somebody who
|
|
# has an account needs to find the door, and somebody who does not should
|
|
# at least see that there is one.
|
|
- name: "Comunidad"
|
|
url: "/comunidad/"
|
|
weight: 9
|
|
de:
|
|
languageCode: "de"
|
|
languageName: "Deutsch"
|
|
weight: 2
|
|
params:
|
|
description: "Lateinamerikanische Community in Wien — Tourismus, Kultur, Gastronomie, Gemeinschaft und Handel."
|
|
menus:
|
|
main:
|
|
- name: "Start"
|
|
url: "/de/"
|
|
weight: 1
|
|
- name: "Community"
|
|
url: "/comunidad/"
|
|
weight: 9
|
|
pt-br:
|
|
languageCode: "pt-BR"
|
|
languageName: "Português (Brasil)"
|
|
weight: 3
|
|
params:
|
|
description: "Comunidade latino-americana em Viena — turismo, cultura, gastronomia, comunidade e comércio."
|
|
menus:
|
|
main:
|
|
- name: "Início"
|
|
url: "/pt-br/"
|
|
weight: 1
|
|
- name: "Comunidade"
|
|
url: "/comunidad/"
|
|
weight: 9
|
|
|
|
params:
|
|
# The picture a share card falls back on when a post or page has none, and the
|
|
# organisation's logo in the structured data. One path — /uploads/algo.png —
|
|
# and WhatsApp, Signal, Mastodon and Bluesky all start showing an image. Left
|
|
# empty until there is a logo to put here; a link then shares as title and
|
|
# description, which is what happens today.
|
|
defaultImage: ""
|
|
|
|
# The organisation's profiles elsewhere, for `sameAs` in the Organization
|
|
# schema: it is how a search or answer engine knows the Instagram account and
|
|
# this site are the same body. One URL per line when they exist.
|
|
sameAs: []
|
|
|
|
# og:locale values per language slug (ported from theme/inc/seo.php).
|
|
localeMap:
|
|
es: "es_ES"
|
|
de: "de_DE"
|
|
pt-br: "pt_BR"
|
|
|
|
# llms.txt — custom plain-text output rendered from layouts/index.llms.txt
|
|
# (ported from theme/inc/robots-and-llms.php).
|
|
outputFormats:
|
|
llms:
|
|
mediaType: "text/plain"
|
|
baseName: "llms"
|
|
isPlainText: true
|
|
|
|
outputs:
|
|
home: ["HTML", "RSS", "llms"]
|
|
|
|
sitemap:
|
|
changefreq: "weekly"
|
|
priority: 0.5
|
|
|
|
markup:
|
|
goldmark:
|
|
renderer:
|
|
unsafe: true # WP-migrated content contains inline HTML
|
|
|
|
enableRobotsTXT: false # robots.txt is a static file in static/
|