cloudflare-pages-test

Copy of the (private) source repo for jldec.me.
Contains markdown blog content to generate a static site using pub-server.

auto-deploy on push

build environment

see pub-config.js

  • DOMAIN : for site name and fully qualified urls, e.g. in sitemap.xml.
  • PREVIEW : if set, also add (preview) to the site name.

to edit content

Clone https://github.com/jldec/cloudflare-pages-test, then

npm install

To preview at http://localhost:3001/ while you edit the markdown (using any editor).

npm start

The browser preview will auto-reload whenever you save a file.

To generate a new set of html and copy static files into ./out.

npm run generate

To preview the generated static output at http://localhost:3001/

npm run preview