Hosting your Hugo website for free on Cloudflare

You probably already know how big a fan I am of Cloudflare. So while looking around on the Cloudflare console, when I discovered Cloudflare pages, I was overjoyed! It took me only a couple of minutes to switch hosting this blog from DigitalOcean apps to Cloudflare pages. That鈥檚 the beauty of code driven deployments 馃檪 I followed the very handy documentation here on the Cloudflare developer portal, and switching was a breeze! The only point to note is that by default Cloudflare uses an old version of Hugo, so your website may not compile. It鈥檚 a better idea to instead use the HUGO_VERSION environment variable and set it to the same version as what you鈥檙e using locally (you can get your local version by running hugo version). ...

October 3, 2022 路 1 min 路 166 words 路 Kalpik Nigam

Hosting your Hugo website for free

As promised, here I am with a blog post about how I shifted to Hugo from Wordpress. What we鈥檒l achieve by the end of this blog post: Migrating your data out of Wordpress (optional) Installing Hugo Creating a new blank Hugo website Importing your wordpress content into your new Hugo site (optional) Committing your new website to Github Setting up a free account with DigitalOcean and linking your GitHub website repo to DigitalOcean apps to enable automated deployments Setting up a custom domain for your website on DigitalOcean Migrating your data out of Wordpress I found the easiest way to do this is to use the WordPress Jekyll Exporter plugin. Just install this on your WordPress site, and download an export. Keep the zip file somewhere safe, we will need it later on. ...

September 29, 2022 路 4 min 路 666 words 路 Kalpik Nigam