Skip to content

v0.2.0 — Government Section

Choose a tag to compare

@iyanski iyanski released this 07 Mar 02:43
· 8 commits to main since this release

What's New

Government Section

  • New /government and /government/:category routes with a dedicated Government listing page
  • Government content system under content/government/ (departments: executive, legislative)
  • src/data/government.yaml — top-level government category definitions
  • Navigation updated: main nav Government item links to /government/departments
  • Document page extended to serve both services and government content

Companion JSON for Dynamic Content

Markdown pages can now have an optional companion .json file (same slug) that supplies {PLACEHOLDER} token values — ideal for official names, titles, and dates that vary per LGU deployment. Resolution order: JSON value → VITE_<KEY> env var → unchanged token.

Other Changes

  • OG image template redesigned for improved open graph previews
  • markdownLoader.ts and yamlLoader.ts refactored to support both content trees
  • Navbar, Breadcrumbs, Section, and GovernmentActivitySection updated
  • Locale strings updated

Documentation

  • README.md — project structure and setup steps updated
  • CLAUDE.md — routing, content system, and JSON companion file documented
  • CONTENT-MANAGEMENT.md — government pages section, JSON data files, placeholder workflow
  • CONTENT-GUIDE.md — department page template and dynamic content section added

Full Changelog

https://github.com/iyanski/betterlocalgov/blob/main/CHANGELOG.md