astro-wpress.ncvp.me

using ncvp.me/wp for all content

Posts by NickP

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 […]

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    │   └── […]

Reduce canonical WP

Something basic with the master at localhost/wp/wp and distributed around to the various default cloud sites

Textflow using gallery shortcode

One way way of including images in a page of text is to put them in single image galleries. They can be made to pop out or not with the use of link="file" or link="none". Control over size is limited to Large, Medium or Thumbnail, but this is often sufficient. Some HTML is required to […]

Different menus on different pages

If these can be made to work smoothly I may not need a hybrid site, like my new garden, but look carefully at Planting Plans. This may be another case like CAS membership form with payment where I can use a shortcode to basically dump code on a WP page and not worry about registering […]

Textflow using raw HTML

This method is very straightforward for static images. The thumbnail caption is explicitly coded. It makes no difference whether the image is from the media library or external. The static picture of the Nymph immediately follows this text ... Friend of Echo ... and this text immediately follows the Nymph. Maecenas id sapien risus. Nullam varius […]

Post with an image

Raw HTML seems to be the way forward. This one doesn't pop-out: Hellebores This one does. As usual, you have to enter the img url twice: Hellebores There's inevitably some fiddling required when sites are moved around, but it's probably less than the single-image gallery method.

Second level page

The root is level 0. We never see it. The pages in the top menu are level 1. This menu is effectively static. The menu item for this level two page appears at the extreme left of the side menu.

Rendered by src/pages/author/[slug].astro