wordpress static website – Arun Babu https://arunbabu.in/ Welcome to my blog! Tue, 14 Apr 2020 17:14:31 +0000 en-US hourly 1 https://wordpress.org/?v=5.4 Why I built this static website using WordPress as backend https://arunbabu.in/why-i-built-this-static-website-using-wordpress-as-backend/ Tue, 14 Apr 2020 17:14:30 +0000 https://arunbabu.in/?p=66 Introduction.

I had this domain arunbabu.in from last 4 years (I will explain the funny story about getting the domain in a separate post). I always wanted to have a personal blog on my name. I begin with a WordPress blog initially, then it was having an issue finding a proper hosting, setup and so on. Soon after a year, I shut down the complete site. I was extending the domain every year hoping to bring back my site. I heard of JAM stack recently and really liked the idea. The free offering from netlify seems like a perfect combo. I built my static site with Hugo, was really fun, but I was missing a lot of nice editor in WordPress. Finally, after a lot of trial and errors, I thought of building a static site from WordPress and hosting the static site on netlify.

I am not going to explain the features of the static website here. The main point you should know is that it’s built with very less moving parts and can scale hugely.

So this website you see is written on a site powered by WordPress (A free publishing platform), hosted on a free version of Heroku, a static site is generated by WP2Static and hosted on netlify. So technically my hosting cost is zero for this blog (apart from the domain charges).

So you might be wondering why I picked this combo. Let me explain it to you guys.

  1. WordPress – This is one of the platforms I got my hands on after the forum era (Yeah, you remember this Vbulletin and MyBB forms right?). WordPress is a free blogging solution, can be hosted easily, comes with a ton of plugins for almost everything. Also, you can customise it without pulling your head. I needed WordPress because I tried out Hugo, Gatsby and Vuepress for publishing. All are great tools, their editor lives in a simple markdown file and is great for a programmer. But since I am not a native English speaker, I miss the Grammarly plugin which corrects my English to an extend and other WYSIWYG features on markdown.
  2. Heroku – I host the main WordPress on a Heroku free tier account because,
    1. I don’t want my WordPress site up all the time (Heroku’s free tier application shuts down after 30 min of inactivity and wakes up when a request comes)
    2. I don’t want search engines picking up this WordPress backend and indexing.
    3. Its dread simple to host something on Heroku with almost zero maintenance.
  3. WP2Static – Huge shout out to the author. It’s an open-source WordPress which can convert your existing site to a static one with some clicks. Note: The plugin is not error-free, but I can understand the effort the author does to the open-source community and couple of my custom fixes made me running this plugin great.
  4. WP2Static can build the static site and deploy directly to netlify. I use their free tier since its more than enough for my need.

Note: I am not saying these static website builders are bad. They are great choices, ships with version control and very easy to maintain (As long as you are a programmer). Though the are editors like forestry exists for static builders, things got a bit overwhelmed for the entire writing and management experience in these static builders for me (Note: This is also not the primary function of a static builder). This is highly based on my use case, maybe this WordPress static website setup won’t work for you at all. I am just throwing a simple idea if you want an almost zero maintenance-free fancy static website based on a WordPress blog.

]]>