Often I want to quickly write a small blogpost about something, usually involving bits of code. But with Blogger, where I previously hosted my blog, adding code with proper styling was always so cumbersome. For a long time I wanted something different, something simpler. No more dependencies on hosted services or other peoples database models, since it’s always a hassle to move from service to another.
This new blog is created using Jekyll, automatically deployed using BitBucket Pipelines and hosted (free!!) on Google Firebase. The design might not be that great (yet), but hé, I’m a developer ;-)
Jekyll is simple tool for writing documents in Markdown and generate static HTML pages based on Liquid templates. The templating is very simple and using a Jekyll theme, it is very easy to quickly setup a site.
A Jekyll site is pretty simple, but can easily be extend using existing plugins, write your own plugin or some advanced templating.
Most my git repositories are on BitBucket. With the ‘pipelines’ feature it is relatively easy to setup a workflow where all commits on the master branch are automatically deployed.
Since Jekyll is just a static HTML site, it should be possible to host it somewhere for free. But, apparently, there are not that many locations anymore where you can freely host a site.
Heroku is not a real choice since it stops the instance when there is no traffic or it’s resources are needed by paying customers.
I finally ended up at Google Firebase. Although it is mend to be used for dynamic sites, it can also just be used for hosting static content. Deployment is easy via a
firebase cli tool.
While creating the new blog I also learned about SASS. Why does CSS not just have all these features?
Features I’m using for this site:
In future posts I’ll elaborate more about how I implemented this site and features.