Add selectable home layouts and reorganize admin settings
Add selectable home layouts and reorganize admin settings
#5 in tonybierman/dx-blog — merged 2026-05-29
Summary
- Add a
HomeLayoutenum (12 registry-derived layout kinds) wired through the public home page, with an admin selector that persists the active layout insite_settings. - Reorganize the admin settings surface into three sidebar sections:
- Settings — new Site Title and Site Tagline fields, surfaced in the header (tagline as a ≥sm subtitle) and footer.
- Appearance — theme accent hue + home layout.
- Taxonomy — categories + tags.
- Fix the bento grid overflow: rows now grow to fit card content (
auto-rows-[minmax(180px,auto)]) and tiles fill their cell via a newPostCardView { fill: true }prop. - Add a
justfilewithserve/clean-assets/freshrecipes.
Notes
- New public server fns
get/set_site_titleandget/set_site_taglinefollow the existing per-keysite_settingspattern (reads public, writes gated bySETTINGS_WRITE). No DB migration needed — the table already exists. - Both targets type-check:
--features server,sqliteand--features web --target wasm32-unknown-unknown.
🤖 Generated with Claude Code
Last updated 2026-05-30
Links to this note
Credits
Merged pull requests, newest first.