I’m doing a blog. Again.
Looking at my GitHub profile, there’s a clear periodicity to my urge to code. There’s a telltale green band on my submissions around every three months. And it’s that time of the year again. Once again I’m going to try and get my lapsed website up and running again.
I’m giving Jekyll another try, but using Netlify rather than GitHub to generate and serve it. GitHub is merely the medium through which my files float through the web. Netlify has some nice dns features and one-click https through LetsEncrypt, plus some CMS functionality that I still need to look into.
Historically, I’ve always had problems with Jekyll. My site would build correctly, filling up my local _site directory with beautifully generated files, yet when I try and serve it (either locally or via github pages) the home page would be blank. Check the source: blank. Search Google for answers: weirdly unhelpful.
And it happened again this time around. I started with a clean slate, followed the getting started instructions and had exactly the same issue. Blank. I don’t know how this isn’t a problem people come across more often. Now given you are reading this, my setup does apparently work with Netlify, so if you do come across this issue maybe that’s your best way forward.
What this does mean is that in it’s current setup I can’t play around without the site before pushing it to production. Expect things to get a bit ropey round here while I get settled in.
Addendum 2018-04-05: Hurrah! I managed to get it to display locally. No more pushing my files to the cloud speculatively in the hope they fix my problem.
For some reason despite apparently stopping and restarting the
bundle exec jekyll serve command as per instructions, despite even closing and reopening my terminal window, it must have been serving some old version of the site. Serving the site on a different port by appending
--port <any number that's not the default port, 4000> to that command allowed me to finally see what I can see what this site actually looks like.
Now I can really get make this place my own.