Stop overriding page title and #site-title with siteName (AI)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
biosiasandClaude Opus 5.5 committed 2026-10-27 00:05:44 +01:00
1 parent 96cefba24d
commit bef6538cb6
6 files changed
+14 -23

No files matched your search

+5 -11
View File
@@ -271,12 +271,11 @@ The resolved locale also drives date formatting (`Intl.DateTimeFormat`), search
tag-label sorting (`localeCompare`), via `getLocale()` in the same module — so a translation
file doesn't just relabel text, it affects how dates and sorting behave too.
The page `<title>` and an optional `#site-title` header link (see "Embedding in an existing
page" below) are both set from the `siteName` string at startup, so they stay in sync with the
resolved locale automatically — translate `siteName` in `strings/xx.json` rather than editing
the page. Other site-specific branding in the embedding page itself (the header search
placeholder, the sidebar section headings) is plain static HTML, not JS-templated — translate
that by editing the page directly (`demo/index.html` for this repo's own demo).
cmkiss never names the page: the `<title>`, the site header, and any other branding (the header
search placeholder, the sidebar section headings) belong to the embedding page and are plain
static HTML — translate them by editing the page directly (`demo/index.html` for this repo's own
demo). The only change cmkiss makes to the tab title is in the article view, where it shows
`<article title> | <page's own title>`; list views restore the page's original `<title>` exactly.
## Embedding in an existing page
@@ -353,11 +352,6 @@ demo does.
```html
<nav id="tag-filters" aria-label="Filter by tag"></nav>
```
- **Site title link — `#site-title`.** Optional; its text is set to the `siteName` string once at
startup, so it stays in sync with the resolved locale without editing the page per language.
```html
<a href="#" id="site-title">My Site</a>
```
`#tag-filters` is optional — omit it and nothing breaks, the article list and search still work
standalone.