Repo tutorials · Open source

Hugo

github.com/gohugoio/hugo

A full course on hugo. We installed it, ran it on something real, and reported what happened.

Start here, in order· 4 parts, about 46 min total
  1. 1

    1. Installing Hugo, and the Empty Build That Exits 0

    Hugo installed in 7.86 seconds and rebuilt our site in 4 ms. Its first build also wrote zero HTML files and reported success, and that was the first of four silent failures.

    10 min
  2. 2

    2. Moving 128 Real Articles Into Hugo, and the Code Blocks It Quietly Rewrote

    We moved our own 128 published articles into Hugo and got clean builds in under 100 ms. The obvious route also rewrote code blocks in 8 of them, turning shell comments into headings, and exited 0.

    10 min
  3. 3

    3. Pushing Hugo to 50,000 Pages, and the Template Line That Cost 70 Seconds

    Our 50,000 page Hugo build took 86 seconds until we moved one where filter into a cached partial, and then it took 16. We also fed it bad input on purpose: five of eight mistakes built with exit 0.

    10 min
  4. 4

    4. Hugo Beat Eleventy at Every Size We Tried, and We Would Still Not Pick It for Everyone

    Hugo built our 10,000 article site in 2.45 seconds to Eleventy's 4.8 and won at every size we tried. It also used nearly twice the memory, and 17 of its last 42 releases flagged something breaking, deprecated or removed.

    9 min