From 8583a190c0178374132c888622d693fed1f88a18 Mon Sep 17 00:00:00 2001 From: N0zoM1z0 <161784452+N0zoM1z0@users.noreply.github.com> Date: Tue, 13 Oct 2026 13:07:12 +0800 Subject: [PATCH] fix(website): keep omitted language selectors free of whitespace Indent the optional language selector with its value so a nonindexable draft does not generate a line containing only spaces. Indexed-page markup is unchanged. Validation: website.py check passes all 12 maintenance regressions; synchronization changes only the draft header blank line. --- scripts/website.py | 2 +- website/public/blog/reverse-engineering-models/index.html | 2 +- website/templates/header.html.tmpl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/website.py b/scripts/website.py index 1d6661fc1..22c0829b9 100644 --- a/scripts/website.py +++ b/scripts/website.py @@ -114,7 +114,7 @@ def shared_blocks(root, path, source): } from website_i18n import language_markup selector, alternates = language_markup(root, path.relative_to(site).as_posix()) - values["language_picker"] = selector if not metadata.noindex else "" + values["language_picker"] = indent(selector, " ") if not metadata.noindex else "" values["alternates"] = alternates if not metadata.noindex else "" templates = root / "website/templates" return { diff --git a/website/public/blog/reverse-engineering-models/index.html b/website/public/blog/reverse-engineering-models/index.html index 52df2ccdf..a3bbb712a 100644 --- a/website/public/blog/reverse-engineering-models/index.html +++ b/website/public/blog/reverse-engineering-models/index.html @@ -79,7 +79,7 @@ FAQ