Making The Move From WordPress To Jekyll
Lately I’ve been in the mood to explore different things and try different ways of building web sites. I’m always looking at how I can improve user experience and increase page speed loading time. I’ve also wanted to move away from traditional CMS platforms for a while now also. So I did some research and found Jekyll and is primarily used by the good people at GitHub.
My WordPress Issues
Originally my site was built using WordPress and had all of these great features that I could use and this wide variety of plugins at my disposal that could accomplish just about anything. But I didn’t need all of that. Everything I do I code from scratch, for the most part. With my WordPress site I had to use security plugins to keep hackers at bay and it worked for the most part, but I was tired of getting emails saying someone from this IP has been blacklisted for trying to access a directory that does not exist (I had my admin directory renamed and they were trying to access wp-admin).
The Migration Process
The migration process was quite simple. Since the basic file structure is similar between Jekyll and WordPress determining where to put what code where was really easy. Jekyll uses the same head/footer concept as WordPress, there is a file called header as well but that’s more for like your visual site header, like where your navigation and everything would be held if you have a top nav like I do. You can create pages easily an after some short reading on the documentation site you can set up the config file and front matter like you want it really easy.
The hardest part for me was picking up the Liquid Markup Language. It is very similar to php and is required if you want some sort of dynamic-ness to your site, such as listing posts and having different variables but some of the syntax is different. Also remembering to name your posts with the date first was something that took me some time to get used to as well but easily remembered after a few blog postings.
One key thing to remember with Jekyll is, you cannot use php. Jekyll is a static site generator so php will not work so you hae to use an external service for contact forms and what not. Currently what I am using is the marketing automation software, Leadsius. I really enjoy it, gives me insights to the visitors coming to my site, I am able to put them into a lead nurture stream to keep my name in front of them and I also use it for my newsletter. Did I Mention for a single user it’s free?
Since moving my site over to Jekyll there have been some challenges. Automating deployment to my server, I haven’t figured that one out yet, but I’m working on it… Limitations with my hosting provider. Automatic posting to social media when I publish a new blog post or portfolio post. Those are my primary challenges, just automation of certain tasks.
Overall my site speed has increase dramatically from 6.2s load time to 2.4s load time. The amount of HTTP requests drop from over 70 to less than 10, and since Jekyll is built locally on my machine (I run a mac), I can open up spotlight and search for one of my blogs if I need to reference it when I don’t have an internet connection. Finally no more emails about people trying to hack my site… There’s no database for them to corrupt, there’s no injection script they can run, and I know my site will always be up, as long as my server is up.
I will soon be coming out with a video series on migrating from WordPress to Jekyll also using Gulp automation, so be looking for that coming up after the new year.
I moved away from WordPress to Jekyll because Jekyll is static and takes a database out of the questions which makes my site faster and much more secure against hackers.