Add splash-screen smart tag; centralize site title/tagline defaults
Add splash-screen smart tag; centralize site title/tagline defaults
#29 in Riparion/riparion-cms — merged 2026-06-01
Summary
- Add a
splashsmart tag to the embed registry — a full-bleed hero (title, subtitle, optional CTA) reachable from the page editor's + Smart tag menu, with optionalborder/background. Title and subtitle default to the live site branding;hrefdefaults to/blog. - Centralize the site title/tagline defaults so the literals live in exactly one place: private consts in
settings.rs, applied only bysite_title_or_default/site_tagline_or_default.get_site_*and the feed generator funnel through them; every consumer (header, footer, layout headings, splash, head tags, feed) now reads the live, default-applied value and never references a default constant. - Resolve the shared
SiteChromecontext at SSR via a newSiteChromeProvider(use_server_future), so the branding is in the server HTML — no empty/flashing brand before hydration, correct for crawlers, and no per-consumer fallbacks needed.
New install initial values: Riparion CMS / A Dioxus-based Content Management System (returned by the getters when unset — no seeding involved).
Test plan
-
cargo check --features server -
cargo checkwasm/web target (--no-default-features --features web,sqlite --target wasm32-unknown-unknown) -
cargo fmt -
cargo clippyon both targets (no new warnings) - Manual: insert + Smart tag → Splash screen in the page editor; confirm it renders the site title/tagline and CTA, and that
border=false/background=falsestrip the frame/wash. - Manual: change the site title/tagline in Settings; confirm header, footer, layout headings, and splash all track it after reload.
🤖 Generated with Claude Code
Last updated 2026-06-02
Links to this note
Credits
Merged pull requests, newest first.