Blog move successful!
I think it worked!
Here are the rough steps I took to move my blog:
- Clone the 11ty blog template and get it roughly into shape.
- Push the repo to Gitlab.
- Set up a Cloudflare Pages application and connect it to the Gitlab repo.
- Download the Markdown export from Bear Blog and copy all the files into
content/blog. - Fix the issues with the export (see my post), convert Bear's
published_date:to 11ty'sdate:, etc. - Write a script to create my Cloudflare Pages redirects, because cool URLs don't change (or at least don't stop working).
- Publish the site to a test subdomain, like
spike.sals.place.- Because I manage my domain name in Cloudflare already, Cloudflare Pages made this wonderfully easy. I literally just typed "spike.sals.place" into a textbox and Cloudflare made it happen. This was an unexpected perk.
- Test the crap out of the
/feed/redirect. - Publish a farewell post on Bear, both to say thanks and to give people a heads up in my case my feed breaks, or pollutes their reader with already-read posts (an inevitability, I assume).
- Let that post sit for a day. Muck about with the site design while I wait.
- Write a hasty Python script to test all my internal links against the local server.
- Pull the trigger: switch the Cloudflare Pages custom domain from
spike.sals.placetosals.place. Cross fingers while DNS propagates. - Once
sals.placeis pointing to the new site, see if my feed reader handles the redirect (it does!) and spot-check various individual page redirects to see if they work (they do!). - Be happy.
- (Later) Figure out what to do with all the images that are still hosted on Bear.
If you see anything busted, please do email me and let me know. I'm sure I missed something.
- ← Previous
Moving my blog to 11ty and Cloudflare Pages