TechSomething

Dumb-migrating from a static Wordpress to Eleventy

My first blog was a wordpress installation on a hosted site,
then it got moved to a full vm under my control,
then it got shutdown and forgot for some months,
then it was recovered and lived for brief moments just when writing entries because the "live" site was actually a static export on S3.

Then today, wordpress has been decommissioned 'cause it was useless to keep something alive when the hassle of using it was more than the usefullness of it.

So I've migrated the old wordpress to Eleventy using eleventy-base-blog,
this allows me to edit the blog entries easily from CLI, preview it locally and upload the site with a simple "aws s3 sync".

The migration has been done without automatic tools,
all the entries have been dumb-migrated by hand, and it shows since the formatting has to be fixed on many pages.

Installation: #


sudo apt-get install nodejs
sudo apt-get install npm
npm init -y
npm install @11ty/eleventy --save-dev

Running and serving: #

running eleventy to build the static site:

npx @11ty/eleventy

to run and serve eleventy locally:

npx @11ty/eleventy --serve

and you'll find your site on localhost:8080

TODO: