Ariel Rodriguez Romero

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.

Before and After image of the blog

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.

Design

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.
  • Responsive.
  • 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 /articles page.

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.

Then, I started brainstorming to create several proposals for the home page. I took some inspiration from several blogs, including nathanbarry.com and brunomarinho.com among others.

landing page proposals

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.

Mid-fi design of arielrodriguezromero.com

The image at the top was taken by @isabeldiazalanis, from our recent trip to St. Augustine. They claim to be the oldest city in the US, although everything seemed fairly new.

Implementation

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.

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:

permalink: /blog/:slug-:year:output_ext

That format is the permalink configuration from Jekyll, some things to note:

  1. All posts will be under /blog/, which doesn’t seem to have any bad effects and makes the URLs look better IMO.

  2. 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.

  3. The :year is 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.

  4. 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:

http://arielrodriguezromero.com/blog/jekyll-redesign-personal-page-2018.html

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.

Conclusions

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.

Extra

Almost forgot, another thing I really liked was the 404 page. I created a custom drawing for it:

404 page

I think I’ll start using more images like that one in future posts.

Related posts

Deploying a serverless NextJS App

We migrated to NextJS recently and started using ZEIT to deploy our frontend. We required some configuration and even found a bug on ZEIT’s platform in the process.

Set up end-to-end tests with jest-pupeteer and NextJS

This contains details and the configuration files required to setup jest-pupeteer for end-to-end testing in a NextJS app.

Get route information from Google Flights

Simple strategy to scrape information from google flights (with manual work). It’s helpful if you don’t need a lot of information.