al.ncvp.me

using local WordPress site for all content

Blog

  • Sort out RSS feed
    Have 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
  • Create astro-local day 2 details
    Another site sourced from a WordPress site like astro-wpress. This time from localhost/wp/wp See also ASTROJS notes.doc to .md conversion Git notes GitHub notes ncvp block theme ncvp theme, original Node.js notes VScode general Website Website menus WordPress WordPress block themes WordPress git-cloud project WordPress menu code WordPress themes Contents fuse.js Gemini comments GitHub Local WP sourcing Menu RSS Search Setup GitHub Not needed. Normal Cloudflare deployment doesn't work with local WP. Top Local WP content sourcing You can't use the normal… Read more: Create astro-local day 2 details
  • Create astro-local
    and use local/wp/wp headlessly for its content. This post was created in WP. Will we be able to add posts created in Astro?
  • Try out ncvp theme
    Even after inhibiting the loading of a lot of block stuff on each page, site looks quite good. In particular, Home page works, although the styling of the list of posts may be a bit lacking.
  • Source of media files
    Move 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
  • Reduce canonical WP
    Something basic with the master at localhost/wp/wp and distributed around to the various default cloud sites
  • Move away from block editor
    Now 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.
  • Category vs Tag
    Each post has only one Category. It can have various tags
  • 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 it.
  • Raw embedded images post
    These images are all coded with HTML in the standard way. The first image is static. The other two pop out with Fancybox effect. Care must be taken with image size to get a good mobile display. The Thames in flood near Ham Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vel massa tincidunt, aliquam elit id, venenatis tellus. Nunc molestie mauris et magna placerat tempus. Phasellus sodales dolor enim, vel eleifend ante facilisis semper. Integer vel dictum orci. Praesent cursus… Read more: Raw embedded images post
  • Post with a gallery
    The gallery shortcode is eminently copyable because it doesn't include urls.
  • Post with an image
    If you don't want the image to pop out with a Fancybox effect use a gallery shortcode with link="none". To get a pop out link="file" The advantage of using single image galleries in this way is that the code is very simple and there are no urls to interfere with copying.
  • Setting 'allow comments' flag
    You 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 passwords
    I'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 register
    I 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 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.
  • Presentation slide page style
    Something 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.

Rendered by src/pages/[...path].astro