Hugo

Bjørn Erik Pedersen · 2013–2025

My favorite Static Site Generators
A note by Andrey Akinshin
static site generator
.

Advantages

  • Super fast and convinient
  • Very powerful and customizable
  • Decent management of the content

Disadvantages

  • Go templates are great for simple templating, but they become a nightmare when you need to do something complex
    • For custom logic, it feels reasonable to use additional preprocessing tools
  • Syntax highlighting via Chroma
    By alecthomas

    A general purpose syntax highlighter in pure Go
    Chroma
    , which handles only simple highlighting
    • It’s possible to use Shiki
      By Pine Wu, Anthony Fu

      A beautiful and powerful syntax highlighter
      Shiki
      (see Using Shiki Syntax Highlighting in Hugo
      By Puzzmo Blog · 2024-06-23

      Replacing Hugo’s default syntax highlighting by using Shiki in a post-build script to enhance code block rendering in HTML files
      Using Shiki Syntax Highlighting in Hugo
      ), but the setup is not convenient
  • No simple way to add backend logic