diff --git a/README.md b/README.md index 0fc243e..269135f 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ The project is under active development. Core blogging workflows are broadly ava - Local MCP automation over stdio or a localhost-only stateless HTTP endpoint, with project resources, read/search/count tools, uniquely identified inert write proposals, clean duplicate-pending rejection, explicit desktop approval, and opt-in Claude Code/Copilot configuration. - A fully localized Ratatui terminal workspace, available locally through `bds-cli tui`/`BDS_MODE=tui` and remotely through authenticated SSH shell sessions, with shared post/template/script editing and publishing, project/search/command overlays, settings, tags, Git, reports, task progress, live multi-client locale updates, and airplane-mode AI gating. - `bds-cli server` hosting the shared application engines over a loopback-by-default, public-key-only SSH service, with restrictive private key material, live authorization updates, terminal-session transport, CLI-change synchronization, ordered domain/task events, and native desktop remote-project selection. -- bDS2-compatible Markdown/Liquid rendering with built-in macros rendered from bundled Liquid templates in isolated scopes (customizable with `macros/*` partial-template slugs), category-controlled list title visibility, descriptive category archive titles, canonical multilingual and flat page routes for every configured blog language, recursive menus, calendar archives, feeds, a root hreflang sitemap, Pagefind, shared cached multicore full-site rendering, change-aware and forced full renders from the native Blog menu/CLI/TUI, and fast route/mtime-based incremental validation whose targeted repair refreshes affected aggregate pages through cancellable section task groups with bDS2-style per-URL progress. +- bDS2-compatible Markdown/Liquid rendering with built-in macros rendered from bundled Liquid templates in isolated scopes (customizable with `macros/*` partial-template slugs), project-description homepage headings, category-controlled list title visibility, descriptive category archive titles, canonical multilingual and flat page routes for every configured blog language, recursive menus, calendar archives, feeds, a root hreflang sitemap, Pagefind, shared cached multicore full-site rendering, change-aware and forced full renders from the native Blog menu/CLI/TUI, and fast route/mtime-based incremental validation whose targeted repair refreshes affected aggregate pages through cancellable section task groups with bDS2-style per-URL progress. - Navigable generated-route preview in the app or system browser, with draft database overlays and published filesystem content. - Optional one-shot AI translation, description, analysis, taxonomy, and language-detection operations run in background tasks with editor-level waiting indicators, using provider-portable JSON-only requests through independent online and local OpenAI-compatible profiles. Each profile has secure credentials, persistently discovered chat/title/image model selections, explicit tool/vision overrides, chat testing, and restart-persistent status-bar airplane-mode routing. - Persistent conversational AI with safe Markdown, streamed and cancellable responses, model/session/token tracking, bounded project-aware blog tools, and localized conversation management in the Chat workspace. Allowlisted render tools add persistent native cards, charts, forms, lists, metrics, mind maps, tables, and tabs without executing assistant-provided HTML or JavaScript. diff --git a/crates/bds-core/src/render/site.rs b/crates/bds-core/src/render/site.rs index e385983..4ad279f 100644 --- a/crates/bds-core/src/render/site.rs +++ b/crates/bds-core/src/render/site.rs @@ -917,7 +917,7 @@ fn build_language_routes( per_page, language_root_prefix(language, metadata), page_title.clone(), - None, + Some(json!({"kind": "core"})), None, )); diff --git a/crates/bds-core/tests/m4_generation_engine.rs b/crates/bds-core/tests/m4_generation_engine.rs index e94d693..56dbe02 100644 --- a/crates/bds-core/tests/m4_generation_engine.rs +++ b/crates/bds-core/tests/m4_generation_engine.rs @@ -545,6 +545,32 @@ fn list_pages_receive_only_their_page_post_data_like_bds2() { ); } +#[test] +fn full_generation_uses_the_project_description_for_every_home_page_title() { + let (db, dir) = setup(); + let mut metadata = make_metadata(); + metadata.description = Some("My Wonderful Blog".into()); + metadata.blog_languages = vec!["en".into(), "de".into()]; + let posts = vec![PublishedPostSource { + post: make_post("hello", 1_710_000_000_000), + body_markdown: "Hello".into(), + }]; + + generate_starter_site(db.conn(), dir.path(), "p1", &metadata, &posts, "en").unwrap(); + + for path in ["index.html", "de/index.html"] { + let html = std::fs::read_to_string(dir.path().join(path)).unwrap(); + assert!( + html.contains("My Wonderful Blog"), + "unexpected document title in {path}: {html}" + ); + assert!( + html.contains("

My Wonderful Blog

"), + "missing homepage title in {path}: {html}" + ); + } +} + #[test] fn section_generation_reports_while_html_is_rendered_before_files_are_written() { let (db, dir) = setup(); diff --git a/specs/template_context.allium b/specs/template_context.allium index 5d0fef1..7e2dc8e 100644 --- a/specs/template_context.allium +++ b/specs/template_context.allium @@ -180,7 +180,7 @@ value LinkContext { -- ============================================================================ value ArchiveContext { - kind: category | tag | date + kind: core | category | tag | date name: String? -- Heading label: for categories the configured descriptive title (falls back to the category key), for tags the raw tag name month: Integer? year: Integer?