Welcome to the second post of Jekyll code which I hope helps others.

This post is a mash of small snippets which were really useful to me when developing this site on jekyll.

Testing on multiple devices

If you’re serious about making a site, you need to test on more than the machine you made it on. With jekyll serve it sets up a development environment to see you site as it would look on the web.

Problem is you need it to test on more than one device, especially for things such as responsive design.

So here is a command line code you need to know.

jekyll serve --host=

This sets up the server so that it’s accesible to any device on your network.

You only need to do this once, every time you jekyll serve again it will run to this parameter.

Now you need to find the right web address to go to on the rest of your devices.

Typically it will look something like this


, x being the connection your host computer has with your modem / router.

You could scroll through the numbers (say from 1 to 10) or log into your router and see what the host computer has connected as.

I also use codekit for web developing. This handy software told me the correct server number needed. It’s not why I’d purchase codekit, but it’s a small advantage. Check it out if you’re looking to use predefined libraries in your web developing (frameworks such as bootstrap and foundation to name but two).

Highlighting code

So jekyll leaves a handy post which shows linking in the post and highlighting code.