mdcms/app
Claude 31330d19e2
feat: clean URLs for section-id pages
Pages whose filename matches a nav section-id now get a clean pathname
URL (e.g. /timesheet) instead of the hash-based /#pages/timesheet.md.

- _initialPathname captured at IIFE start; handles ?_route= from 404.html
- basePath determined by initBasePath() after nav data loads; subpath
  deployments (e.g. /mysite/) handled automatically
- navigateTo() uses replaceState to /slug for section-id pages and falls
  back to #hash for everything else
- popstate listener handles browser history if a clean URL was the entry
- resolveSlugToFile() validates that slug is both a section code and has
  a pages/{slug}.md entry in navData
- app/404.html added for GitHub Pages SPA routing

https://claude.ai/code/session_01Ai8xRvmrzdhuTKiRQ2fnn9
2026-06-07 17:23:30 +00:00
..
assets New standard favicon added. 2026-05-19 15:52:06 +07:00
pages Add tabs and accordion content components to index.html 2026-05-21 16:41:27 +00:00
posts Rename website/ directory to app/ 2026-05-08 15:29:54 +00:00
404.html feat: clean URLs for section-id pages 2026-06-07 17:23:30 +00:00
config.yml Add full Apache 2.0 licence notice to all relevant files 2026-05-18 07:11:00 +00:00
index.html feat: clean URLs for section-id pages 2026-06-07 17:23:30 +00:00
manifest.json Add M favicon, fix manifest for PWA installability 2026-05-17 20:33:00 +00:00
nav.yml Add tabs and accordion content components to index.html 2026-05-21 16:41:27 +00:00
search.json Add tabs and accordion content components to index.html 2026-05-21 16:41:27 +00:00
service-worker.js Add tabs and accordion content components to index.html 2026-05-21 16:41:27 +00:00
theme.yml Add configurable nav section toggle icons 2026-05-18 15:08:59 +00:00