Site v1-01: News System & Routing Stabilization

Site v1-01: News System & Routing Stabilization

Highlights

  • The News list and detail pages are now fully dynamic from news-data.php.
  • Pretty URLs are live: /news/{slug} without long query strings.
  • Header and footer links are now consistent using qp() and u() helpers.

What’s New

Dynamic News Pipeline

  • Add a news entry to the array and it automatically appears on the list and detail pages.
  • Default sorting by newest-first is enabled.

Rewrite Rule Update

  • Added a slug route rule: ^news/([A-Za-z0-9\-]+)/?$.
  • Direct access to /src and /partials remains blocked for safety.

Improvements

  • Breadcrumbs were reorganized to make navigation clearer.
  • Detail thumbnails now use asset() to prevent missing images.

Fixes

  • Fixed “Not Found” issues caused by conflicts between rewrite rules and router whitelist.
  • Fixed list links that previously behaved like anchors back to Home.

Coming Next

  • Polish News UI to match the reference style (divider + full-row hover wipe).
  • Add “Latest News” preview to News Detail pages.

LATEST NEWS

View More