Jekyll: Re-designing my personal blog.
It’s been long overdue, but today I finally updated my blog! The previous version was up since 2015, I implemented it quickly after I graduated from my university and it was always my intention to get back and change it.
This is certainly a big improvement, and hopefully, this new design will live for several years. I like how simple it is, and yet still looks professional. This post describes the process I followed for the re-design, it’s a bit long, if you want you can jump to either Design or Implementation, depending on what interest you the most.
The first part was coming up with the design, it’s always better to have some mockups before starting with the implementation. I decided early that I wanted two main templates: one for the landing page and another one the blog post page. This would ease the process of implementing everything, and since I don’t have too many blog posts it doesn’t really make sense to have a separate page with the list of articles.
To organize my thoughts, I wrote a few key points to consider while creating the design. In general:
- I wanted something very simple.
- With a single column. I wasn’t able to think of anything important enough to deserve a separate column.
- Top bar with the site name (“Ariel Rodriguez Romero’s Blog” for now)
In the case of the Landing Page:
- Starts with a nice image.
- Include a short bio.
- Include links to social networks: Github, Twitter, Linkedin, etc.
- Include a list of articles, with summaries for each of them. In the future, if the list of articles grows it may make sense to bring back the
And for the Article Page:
- Integrate well with markdown, especially for images and code. I don’t want to deal with any formatting issues when writing new posts.
- Disqus comments at the bottom.
Initially the 4th one seemed like the best option. But, a few weeks later I started playing with Sketch and created a Mid-Fi design that ended up being the one selected. It looks more like the 2nd one.
I’m fond of the combination of Jekyll and Github Pages, it’s free hosting and the resulting site loads really fast since it’s only static HTML. So, I didn’t thought much about finding another technology for this.
I briefly considered using webpack and react, I used a similar approach for the Sci-Hub app (code here), but in that case, we needed an application more sophisticated. For my personal blog, this didn’t seem to have any clear advantages, and it would have prevented me from the automatic compilation performed by Github after every commit.
There’s always the option to implement the site from scratch, but there’s no reason to do that when so many resources are available for free. I looked into jekyllthemes.org, jekyllthemes.io and jekyll-themes.com to find a good base theme. In the end, I decided to extend Poole. I also liked called Hyde but it seemed too sophisticated for my use case.
SEO: Choosing the correct link structure for the blog
I read this article with tips for choosing the best URL structure for the site. It’s important to keep the URLs short and include as much information as possible. So I decided to go with the following format:
That format is the permalink configuration from Jekyll, some things to note:
All posts will be under
/blog/, which doesn’t seem to have any bad effects and makes the URLs look better IMO.
A sluggified version of the title is included in the URL, this will allow me to separate the title from the keywords in the URL.
:yearis at the end of the URL. Some of these posts will probably be outdated at some point, so the date, when they were written is important.
All blog posts end with
.html. I’m not sure if this is still valid, I remember reading somewhere that having the extension at the end was good for SEO purposes.
So for example, the URL of this blog post looks like:
Another thing I included was this tip to add
rel="nofollow" to all links inside posts, since most of the time they’ll be linking to external sources.
This turned out to be more complicated than what I expected, given how simple the site looks. Except for the home page, everything else reuses most of the styles from Poole. The hardest part I think was finding a design that satisfied my requirements.
I don’t plan to spend more resources into this for now. Hopefully I will still like this design in a few years.
Additional notes for this post can be seen on #2.
Almost forgot, another thing I really liked was the 404 page. I created a custom drawing for it:
I think I’ll start using more images like that one in future posts.