All posts in category 'Development'

Subtle changes

  • Applied the standard fix to the database to set everything to utf8mb4_general_ci. That made the ASCII art in the post about Astro routing work.
  • Renamed the database to admin2_ncvp_me_wp. Had to apply admin2_17926 user privileges to new database. I don't remember having to do that before.
  • Re-applied box-sizing: border-box to ncvp-class style.css. That fixed the overflowing thumbnails in image galleries - again.
  • Pushed ncvp-class - again.

There's so much to get right!

Sort out astro-wpress routing

This is all about the mapping between site-url/xxxx/yyyy/zzzz and Astro pages. Even though there are no files in the /src/pages tree, the magic files [slug].astro, [...path].astro perform the same sort of rôle as if there were.

Add these to /src/:

└── pages
    ├── author
    │   └── [slug].astro
    ├── category
    │   └── [slug].astro
    ├── index.astro
    ├── [...path].astro
    ├── [slug].astro
    ├── tag
    │   └── [slug].astro
    └── [year]
        └── [month].astro

All this would have been impossible without AI assistance.

Rendered by index.php