- Check new arrangementsAfter converting astro-wpress to download media library to local PC and deploying to Cloudflare via Wrangler, try adding a new image to ncvp.me/wp and see if aw.ncvp.me works. New image: Laus Veneris by Burne Jones
- Sort out RSS feedHave four VScode windows up for four sites astro-blog. Native site from content collection called 'blog' astro-local. Local WP fed site. Deployed to Cloudflare directly with % npm run deploy astro-test. First site. Local without content collection astro-wpress. Cloud fed WP site Compare and contrast these files /astro.config.mjs /src/layouts/Layout.astro src/pages/rss.xml.js Issues found astro-blog. Didn't have an RSS specification in Layout.astro. Correct feed picked up by ncvp.co.uk/rss from footer icon. No sign of 'rss' in <head> in local or cloud page source. ncvp.co.uk… Read more: Sort out RSS feed
- Subtle changesApplied 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!
- Test categories and tagsTest Astro generated tag line. WordPress forces a post to be in at least one category. 1, 2 and 3 categories display perfectly. Date looks good.
- Categories & TagsCategories and tags are the two default WordPress taxonomies used to organise content, with categories serving as broad, mandatory groupings (like topics in a library) and tags providing specific, optional keywords for granular details. Categories are hierarchical (parent/child), while tags are not. In practice individual sites will have their own guidelines for how to use them. Personally, I always assign a post to just one category, and add tags as required. But the perennial problem remains - is a map of the… Read more: Categories & Tags
- Sort out astro-wpress routingThis 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… Read more: Sort out astro-wpress routing
- Start astro-wpress projectMake static front end for ncvp.me/wp. Make GitHub repo astro-wpress, link Cloudflare to it and deploy.
- Source of media filesMove images and other media files which have to be loaded by URL to the cloud so the URLs don't have to be fiddled with as the site is copied around. Is it important that these external files come from SSL protected sites? Here's one from wikimedia.org
- Reduce canonical WPSomething basic with the master at localhost/wp/wp and distributed around to the various default cloud sites
- Move away from block editorNow it's clear that I don't need full site editing and only need the block editor for the Home and Blog pages, convert all other pages and posts to the classic editor.
- Textflow using gallery shortcodeOne 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 control the way images float to the left or the right. The thumbnail caption and the slide caption come from the 'Caption' and 'Alternative Text' fields in… Read more: Textflow using gallery shortcode
- Different menus on different pagesIf 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 it.
- Textflow using raw HTMLThis 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 id tellus quis volutpat. In a tempor tortor, cursus sodales enim. Integer sed felis et massa lacinia molestie volutpat quis dui. Duis interdum libero sed velit ornare,… Read more: Textflow using raw HTML
- Post with a galleryThe gallery shortcode is much more concise than raw HTML, but there's no control over thumb and slide captions beyond what's in the media library. Moving sites around is more of a pain because the image ids are (usually) different in the different sites.
- Post with an imageRaw 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.
- Setting 'allow comments' flagYou can't seem to do this from the normal edit page, but have to go to the quick edit page. Irritating. OK I've found it now. Check 'Discussion' in screen options.
- Force strong passwordsI'm surprised this isn't part of WP core. There are a few plugins which address the problem, at least one of which admits to being susceptible to being bypassed by a knowledgeable hacker. It ought to be possible to see how strong a user's password is from the dashboard.
- Now anyone can registerI set this flag so a register button now appears above the log-in button at the bottom of the left-hand menu. Let's see what happens
- Second level pageThe 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.
- Presentation slide page styleSomething between a page and a series of posts. Initial experiments quite promising, but requiring a child theme for each theme used is not a good thing. This post is showing its age. Presentations were abandoned long ago in favour of PowerPoint.
All posts
Rendered by src/pages/[...path].astro
