[Main] [Book Recs] [Talks] [Sponsor]

Hugo to Zola

I managed to switch my site over to using Zola. It was very tempting since the template engine looked a lot simpler than Hugo. It took me about 3 hours to figure out how to map each of the Hugo features to the Zola equivalent.

I've included the diff from the both versions for comparison. You can see that zola requires a lot less boilerplate and template files to achieve the same result which I was very happy with.

> git diff hugo..zola --compact-summary
 .build.yml                                                                               |   5 ++--
 LICENSE.md => LICENSE                                                                    |   0
 Makefile (gone)                                                                          |   5 ----
 README.md (mode -x)                                                                      |   0
 config.toml                                                                              |  53 +++++++++++++----------------------------
 content/articles/3-years-at-madglory.md                                                  |  13 ++++------
 content/articles/_index.md (new)                                                         |   7 ++++++
 content/articles/build-it-live-nasa-video-app.md                                         |   9 ++++---
 content/articles/case-insensitive-sorting-in-mongo-db.md (gone)                          |  46 ------------------------------------
 content/articles/convention-over-configuration-web-servers.md                            |   8 +++----
 content/articles/easy-profiling-go-benchmark-tests-with-bash.md                          |   8 +++----
 content/articles/encoding-images-with-go-for-the-ssd1306-oled.md (gone)                  |  34 --------------------------
 content/articles/farewell-to-harvard-and-onward-to-madglory.md                           |   8 +++----
 content/articles/fuck-your-hustle.md                                                     |   8 +++----
 content/articles/go-go-import-container-list.md                                          |   8 +++----
 content/articles/go-made-me-return-college.md                                            |   8 +++----
 content/articles/gophercon-2017-generating-hundreds-of-video-catalog-feeds-in-seconds.md |   8 +++----
 content/articles/i-love-my-fear.md (gone)                                                |  21 -----------------
 content/articles/linux-system-metrics-with-collectd.md                                   |   8 +++----
 content/articles/plain-text-protocols.md                                                 |   8 +++----
 content/articles/quick-and-dirty-local-domain-names-for-mamp.md (gone)                   |  73 --------------------------------------------------------
 content/articles/reverting-back-to-a-simpler-time.md                                     |   8 +++----
 content/articles/sharatoga-techtalks-git-a-free-highly-scaled-web-host.md (gone)         |  14 -----------
 content/articles/side-projects.md                                                        |   8 +++----
 content/articles/signing-jwts-with-gos-crypto-ed25519.md                                 |   8 +++----
 content/articles/single-command-static-file-web-server.md                                |   8 +++----
 content/articles/tedxalbany-the-master-of-my-fate.md                                     |   9 ++++---
 content/articles/the-20-year-5-school-bachelors-degree.md                                |   8 +++----
 content/articles/vpscheapnet-review-for-the-server-savvy.md (gone)                       |  71 -------------------------------------------------------
 content/articles/writing-a-web-server-in-go-without-dependancies.md                      |  10 ++++----
 content/book-recs/_index.md (new)                                                        |  26 ++++++++++++++++++++
 content/book-recs/a-philosophy-of-software-design.md (gone)                              |   5 ----
 content/book-recs/a-programmers-introduction-to-mathematics.md (gone)                    |   5 ----
 content/book-recs/neurotribes.md (gone)                                                  |   5 ----
 content/book-recs/the-atheists-guide-to-reality.md (gone)                                |   5 ----
 content/book-recs/the-coddling-of-the-american-mind.md (gone)                            |   5 ----
 content/book-recs/the-elements-of-programming-style.md (gone)                            |   5 ----
 content/book-recs/zen-and-the-art-of-motorcycle-maintenance.md (gone)                    |   5 ----
 content/favicon.ico (gone)                                                               | Bin 1150 -> 0 bytes
 content/go/_index.md (new)                                                               |   5 ++++
 content/go/baconian-cipher.md                                                            |  13 ++++++----
 content/go/goreds.md                                                                     |  13 ++++++----
 content/go/seahash.md                                                                    |  13 ++++++----
 content/go/shardcache.md                                                                 |  13 ++++++----
 layouts/book-recs/list.html (gone)                                                       |  22 -----------------
 layouts/for-sale/list.html (gone)                                                        |  15 ------------
 layouts/for-sale/single.html (gone)                                                      |   6 -----
 layouts/go/list.html (gone)                                                              |  17 -------------
 layouts/go/single.html (gone)                                                            |  12 ----------
 {themes/text-only/static => static}/favicon.png                                          | Bin
 templates/article.html (new)                                                             |  14 +++++++++++
 templates/articles.html (new)                                                            |   9 +++++++
 templates/base.html (new)                                                                | 144 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 templates/go-package.html (new)                                                          |  12 ++++++++++
 templates/go-packages.html (new)                                                         |  13 ++++++++++
 templates/index.html (new)                                                               |  10 ++++++++
 templates/section.html (new)                                                             |  11 +++++++++
 themes/text-only/archetypes/default.md (gone)                                            |   2 --
 themes/text-only/layouts/404.html (gone)                                                 |   5 ----
 themes/text-only/layouts/_default/single.html (gone)                                     |  17 -------------
 themes/text-only/layouts/index.html (gone)                                               |  14 -----------
 themes/text-only/layouts/index.rss.xml (gone)                                            |  26 --------------------
 themes/text-only/layouts/partials/footer.html (gone)                                     |  13 ----------
 themes/text-only/layouts/partials/header.html (gone)                                     |  33 --------------------------
 themes/text-only/layouts/partials/styles.html (gone)                                     | 100 -----------------------------------------------------------------------------
 themes/text-only/static/favicon.ico (gone)                                               | Bin 1150 -> 0 bytes
 themes/text-only/theme.toml (gone)                                                       |   6 -----
 67 files changed, 374 insertions(+), 727 deletions(-)