Goodbye Jekyll, Hello Hugo

I do like Jekyll. It has helped me get back into blogging and I chose it as the technology to build Google Web Fundamentals with it.
Something is seriously wrong though: Performance.
Build times for my personal blog (about 400 pages) take roughly 45 seconds. Web Fundamentals is even worse, frequently taking many many minutes to build just one language pack and we support 13 languages. This performance problem seriously affects our team and our writing team because single changes in a local staging environment take upwards of 40 seconds to be visible in the browser.


This content originally appeared on Modern Web Development with Chrome and was authored by Paul Kinlan

<p>I do like Jekyll. It has helped me get back into blogging and I <a href="https://github.com/Google/WebFundamentals/">chose it as the technology</a> to build <a href="https://developers.google.com/web/fundamentals/">Google Web Fundamentals</a> with it.</p> <p>Something is seriously wrong though: <strong>Performance</strong>.</p> <p>Build times for my personal blog (about 400 pages) take roughly 45 seconds. Web Fundamentals is even worse, frequently taking many many minutes to build just one language pack and we support 13 languages. This performance problem seriously affects our team and our writing team because single changes in a local staging environment take upwards of 40 seconds to be visible in the browser.</p> <p><em>Maybe</em> we can improve it, but I sure as heck can't work out how to do it. I can't instrument it and we constantly hit issues with Ruby (we are not Ruby devs) specifcally around versioning of Gems and runtime updates.</p> <p>We have a lot of technical debt with the site and it is taking me and the team a lot time just to keep things running for a static site. I have a hunch it is the templating engine and Ruby. But this is just me guessing.</p> <p>I was looking around for fast static site generators and a couple of people on the wider team have hinted that <a href="http://gohugo.io/">Hugo</a> (written in Go) is good, well structured and also fast.</p> <p>I wont' go into Hugo to much. It is a static site generator that can ingest Markdown files (like Jekyll) and spit out a structured site based on the templates that you define.</p> <p>I will go over some quick points:</p> <ul> <li>My Jekyll build used to take 45 seconds+, the Hugo entire site build is 300-450ms. 2 orders of magnitude faster.</li> <li>Templating via the Go templating language took a little getting used to but it is <em>lot cleaner</em> than Liquid.</li> <li>Pagination was pretty easy to integrate although I had some trouble with the docs.</li> <li>The docs are pretty strong, there are some samples where examples on a page you would expect to be related are not always sometimes causing confusion.</li> <li>The Jekyll migration guide, for a simple Jekyll build got me most of the way.</li> <li>Hugo didn't support the file naming syntax Jekyll has (YYYY-MM-DD-title) for ordering of posts and I had to write a migration script to add a <code>date</code> attribute to every markdown page and also a <code>slug</code> attribute.</li> <li>I had bunch of HTML files that didn't seem to get included in the .Site.Pages array. Again I had to convert them all with a simple command-line script.</li> </ul> <p>Still, Performance is blazing and my blog is a lot quicker and has no Ruby dependencies.</p> <p>I can't say that we will move Web Fundamentals to Hugo, it's a big job. I am very happy with the local build and deployment set up that I have now for now.</p> <p>Title Image Credit: <a href="https://commons.wikimedia.org/wiki/File:Hellogoodbye_logo.svg">https://commons.wikimedia.org/wiki/File:Hellogoodbye_logo.svg</a></p>


This content originally appeared on Modern Web Development with Chrome and was authored by Paul Kinlan


Print Share Comment Cite Upload Translate Updates
APA

Paul Kinlan | Sciencx (2015-07-31T00:00:00+00:00) Goodbye Jekyll, Hello Hugo. Retrieved from https://www.scien.cx/2015/07/31/goodbye-jekyll-hello-hugo/

MLA
" » Goodbye Jekyll, Hello Hugo." Paul Kinlan | Sciencx - Friday July 31, 2015, https://www.scien.cx/2015/07/31/goodbye-jekyll-hello-hugo/
HARVARD
Paul Kinlan | Sciencx Friday July 31, 2015 » Goodbye Jekyll, Hello Hugo., viewed ,<https://www.scien.cx/2015/07/31/goodbye-jekyll-hello-hugo/>
VANCOUVER
Paul Kinlan | Sciencx - » Goodbye Jekyll, Hello Hugo. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2015/07/31/goodbye-jekyll-hello-hugo/
CHICAGO
" » Goodbye Jekyll, Hello Hugo." Paul Kinlan | Sciencx - Accessed . https://www.scien.cx/2015/07/31/goodbye-jekyll-hello-hugo/
IEEE
" » Goodbye Jekyll, Hello Hugo." Paul Kinlan | Sciencx [Online]. Available: https://www.scien.cx/2015/07/31/goodbye-jekyll-hello-hugo/. [Accessed: ]
rf:citation
» Goodbye Jekyll, Hello Hugo | Paul Kinlan | Sciencx | https://www.scien.cx/2015/07/31/goodbye-jekyll-hello-hugo/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.