Ask HN: What's the simplest static website generator?

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • shite

    The little hot-reloadin' static site maker from shell.

  • Pandoc can be your friend. My site maker [1] is built around it.

    I think a hundred or so well-chosen lines of your favourite scripting language can do wonders. Mine is ~300 lines of Bash because I over-engineered a thing or two for kicks. The core of it is maybe 50 lines.

    [1] https://github.com/adityaathalye/shite

    The README documents the architecture and rationale. Maybe it will help you figure out yours. Happy hacking!

  • piper

    Playground for the Hugo CMS (by cpach)

  • Hugo without a theme and some simple CSS could do that.

    Feel free to clone this repo: https://github.com/cpach/piper

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • cmark

    CommonMark parsing and rendering library and program in C

  • I use GNU make. Write content in markdown, feed it to https://github.com/commonmark/cmark to create html. I intended to splice files together using xslt but echo and cat written in the makefile sufficed.

    I'm not totally sure I'd recommend that but I do like the markdown => html flow.

  • mishareyzlin.com

    My website built with HTML, CSS and JS

  • You can iterate over files and collect them into a map from paths to contents and use a 2kb snarkdown if you need markdown parsing. Here’s mine (I use both files and a content.json file for the contents):

    https://github.com/gryzzly/mishareyzlin.com/blob/main/build....

  • gutenberg

    A fast static site generator in a single binary with everything built-in. https://www.getzola.org

  • I think you're thinking about Zola: https://github.com/getzola/zola

    But yes, if I were to recommend something, it'd be Zola given that there's just one executable that you need to run and there's absolutely no setup required.

  • minimum-viable-hugo

    No CSS, no JS. One static HTML page to start you off.

  • Hugo comes out of the box with headers and footers, but you'll probably want to grep around a bit before you understand them fully. I can still recommend my https://github.com/Siilikuin/minimum-viable-hugo as a decent way to get started with a "gears first" approach to Hugo, even though recent developments have made it a bit outdated (in a good way!).

  • astro

    The web framework for content-driven websites. ⭐️ Star to support our work!

  • Maybe a bit too elaborate for your taste, but I've used https://astro.build/ and loved every bit of it.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • eleventy 🕚⚡️

    A simpler site generator. Transforms a directory of templates (of varying types) into HTML.

  • I suggest you to try out eleventhy (https://www.11ty.dev/)

    Quite simple to start, and a nice system to add some scripting and styles without the requirement of bringing in a framework.

  • simplesite

  • This handles templates (and reloading) and markdown.

    Just call `go run .` when developing, add the `-production` flag when deploying. Note that this is probably more relevant when running on a VPS, as this doesn't produce the HTML files. While simple it is quite powerful as is.

    It can be found here: https://github.com/BenStigsen/simplesite

  • Wintersmith

    A flexible static site generator

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts