marcinsakowski.com

This website, rebuilt from a Squarespace subscription into an Astro site on GitHub and Cloudflare Pages, with posts that publish themselves on schedule.

Active PublicAI-assisted

What it is

The site you are reading. It holds my projects, the blog, the property tools and the contact form. Since June 2026 it has been an Astro site built from a private GitHub repository and served by Cloudflare Pages.

Before that it ran on Squarespace. The Squarespace blog had 57 posts written between June 2024 and May 2026. I reviewed every one of them and moved 26 across. Some of the rest were market predictions that had turned out wrong; others were about topics that no longer fit the site. Every post that carried over can still be reached at its old address, so existing links still work.

Why I rebuilt it

I had too little control for what I was paying. The template decided what the site could do, and the subscription cost more than I was getting out of it. I wanted the content in plain files I own, and room to build things a page builder doesn’t offer, like Deal Analyser, whose calculation engine lives in this same repository.

The Squarespace website plan expired on 12 July 2026. The domain is still registered there, which costs me £12 a year. That is the only cash cost the site itself has. It is not the whole cost of running it this way: I build it with a paid AI coding assistant, which I use across all my projects, and it takes my own time. Neither appears on a bill for the site, and neither is free.

How it works

Every post and project is a Markdown file with a short header of fields: title, date, category, whether it is a draft. Astro reads those files when it builds the site and turns everything into static pages. There is no CMS and no server waiting for requests; Cloudflare simply serves files.

A push to the main branch is the whole release process. Cloudflare Pages notices it, runs the build and puts the new version live in about a minute. Branches get their own preview address first, which is where I check changes before they reach the real site.

The contact form is the one dynamic part. It is a small Cloudflare function that checks the submission, stores it and sends it on by email. What happens to the data is written out in the privacy notice.

Scheduled publishing

A static site only changes when it is rebuilt, so a post dated for next Monday does not appear on Monday by itself. Someone has to trigger a build after the date passes. That someone used to be me.

Now a GitHub Actions workflow checks six times a day, on UK time, whether any approved post has reached its date but isn’t on the site yet. If one has, it asks Cloudflare for a single rebuild, then checks the result from outside: the page answers, it is in the sitemap and on the blog list, and nothing still in draft has leaked. If any of that fails, I get an email.

The date in the post’s own file is the only schedule. There is no queue anywhere else, so a post can still be published by hand at any time without disturbing the others, and moving or cancelling one is a one-line change. The default rhythm is one post a week, on Monday at 09:00 UK time. That is a habit, not a setting. Three a week would just mean different dates.

Three rules keep it from publishing the wrong thing. A post that depends on current law, prices or data has to be checked in the week before it goes out, or it waits. A post that missed its slot by more than 48 hours waits for a new date instead of appearing late. And if the build can’t confirm what is already live, it stops rather than guess.

What went wrong along the way

Most problems came from the edges, not the code:

  • Old Squarespace descriptions kept showing in search results after the switch.
  • For a while the bare domain served a full second copy of the site. A redirect to the www address fixed it.
  • The sitemap disappeared from production for a while after a build setting went missing, and the build passed anyway. The address is now fixed in the code.
  • Cloudflare’s email protection rewrote an install command in one of my posts because it looked like an email address.
  • When I tested scheduled publishing, my own bot protection blocked GitHub’s servers from checking the site. The checks now read the same deployment through Cloudflare’s own address for the project.

Limits

This setup suits me because I am comfortable with Git and the command line, and I build with an AI coding assistant. Editing means changing files and merging a change, not clicking in a page editor. For most people who just want a website, Squarespace, Wix or WordPress is the more sensible choice.

The scheduling depends on GitHub and Cloudflare both doing their part. GitHub can delay scheduled runs at busy times, so a post set for 09:00 may appear an hour or two later. It is reliable enough for a blog, not for anything where minutes matter.

All projects