15 ms·
Top Open-Source Static Site Generators
- rubenbe 8y agoI recommend Lektor [0], because it ships with a administration UI. This means you can give/sell it to people that would otherwise want a wordpress site. Unfortunately that feature doesn't pop out on the staticgen list. [0]https://www.getlektor.com/ https://www.getlektor.com/
- jamietanna 8y agohttps://www.netlifycms.org/ https://www.netlifycms.org/ is an alternative for Hugo/Jekyll
- throwaway77384 8y agoBeen making some inroads with this one and hoping to be able to use it with client-facing work soon. The super simple deployment and administrative process, along with Hugo's crazy speed and flexibility make this stack shine. If you know a bit of Golang, then there's almost nothing you can't do with this.
- deadonarrival 8y agoThey have a sister site linked at the top of the page for CMS https://headlesscms.org/ https://headlesscms.org/
- srik 8y agoForestry is a good comparable service for Jekyll and Hugo. https://forestry.io https://forestry.io
- inthewoods 8y agoCloudcannon.com is my favorite static site CMS for this reason and the reason I stick with Jekyll.
- Dowwie 8y agoWow. So many static site generators. A static site generator needs good themes. A static site generator ranking based just on GitHub stars isn't telling much.
- spython 8y agoSure, having good existing themes is important, but it's much harder to quantify. Also, themes are not 'one size fits all', so consider meeting your local designer/frontend developer (or contact me :) to create a theme or at least adjust an existing one. It makes quite a difference when the theme fits to your needs.
- tonyedgecombe 8y agoThemes was the least important issue for me, easy of use was much higher in my list of priorities.
- ryanSrich 8y agoAnd I'm quite the opposite. If your SSG comes with prebuilt themes and a ton of deep integration overhead (like Hugo) I'm going to pass. Just give me RSS, blogging, ability to use any templating language, and I'm good to go.
- nine_k 8y agoBeing able to easily create and pack themes is meta-important. That is, a good set of themes cannot appear by a community effort unless creation of a theme is reasonably easy and well-documented, and themes are self-contained and easy to share.
- shubhamjain 8y agoIf anyone is considering using Hugo, please account the tens of hours you will spend debugging its weirdness and magic. Yes, it's fast but it seems that ease-of-use was its lowest of the low priority. How variables work is impossible to understand. So is creating new layouts. Every change, however minor, involves fighting hard until I give up and settle for a hack. The speed of generation doesn't seem much of an added advantage since you're gonna do it only once anyway. It's hard to know why would anyone make such weird design choices to solve a problem that has an easy, known solution. Am I trivializing? Maybe, but I know how much time I spend on rendering when I am working with Flask + Jinja and how it's 10x worse with Hugo. Sadly, moving my blog way from Hugo would be too much work and I have to bear with it.
- yoz-y 8y agoI had quite good experience with it so far. I have migrated over from Middleman when the updating process become unbearable. I agree that doing new layouts is quite hit and miss. An extensive example using all possible variables would be quite welcome.
- EarthIsHome 8y agoComing from Jekyll, Hugo theming was extremely daunting.
- swasheck 8y agoAgreed. I've started four themes and just give up. My blog lies stagnant because I'm not pleased with its appearance.
- spython 8y agoI found this a good introduction to variables and context in Hugo: https://regisphilibert.com/blog/2018/02/hugo-the-scope-the-context-and-the-dot/ https://regisphilibert.com/blog/2018/02/hugo-the-scope-the-c...
- throwaway77384 8y agoDo you come from a Go background? Because in my opinion, it starts to make sense if you understand what's going on behind the scenes with Go. Hugo always struck me as an SSG for developers who want something in between the super-easy to use, with zero experience and, well, starting from scratch with every site. Admittedly, even with a Golang background, I find there is quite a learning curve, so I wouldn't recommend it for anyone who is just trying to get their blog online.
- Spivak 8y agoCan someone suggest a good static site generator that uses Org files? I'm looking for something I can have a blog & wiki with that integrates with how I already take notes. Gollum & derivatives seem alright but very bare bones.
- souterrain 8y agoAn article[1] on org-publish[2] made it to the front page of HN[3] just yesterday, in fact. [1]: https://vicarie.in/posts/blogging-with-org.html https://vicarie.in/posts/blogging-with-org.html [2]: https://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html https://orgmode.org/worg/org-tutorials/org-publish-html-tuto... [3]: https://news.ycombinator.com/item?id=17940393 https://news.ycombinator.com/item?id=17940393
- mc_ 8y agoAlso check out Nikola which has a nice orgmode plugin.
- kaushalmodi 8y agoI have developed an Emacs/Org Mode package that can export subtrees or whole files to Markdown files. The front-matter stuff like title, author, tags, categories, dates gets auto-derived. These Markdown files are Hugo compatible. See https://ox-hugo.scripter.co https://ox-hugo.scripter.co. Dozens of ox-hugo + Hugo users have shared their sites and site source in Org mode here: https://ox-hugo.scripter.co/doc/examples/ https://ox-hugo.scripter.co/doc/examples/
- varjag 8y agoThanks for this.. had no idea Coleslaw exists!
- atmoz 8y agoShameless plug: If you want to organize your content with files and directories without any configuration files and all that fuzz, I created PLY[1] this summer. All it does is convert .md files to .html and optionally uses nested Golang templates. There are some tricks behind the scenes, like support for tags and meta data (just like regular static site generators). Flexibility is concentrated into the templates, so no other files are needed. I think the content (files) should reflect the structure of the webpage as close as possible when using a static site generator. When reducing complexity, we can go all the way down to the filesystem, where files and directories are the main building blocks. Content and design must be separated as much as possible. I have not tested all static site generators out there, but the few that I tried did not satisfy my demands. So I just made my own (for fun and learning). [1]: https://github.com/atmoz/ply https://github.com/atmoz/ply
- souterrain 8y agoGo is apparently well suited to minimalist static site generators, see zas[1], zs[2], and z[3]. [1]: https://github.com/imdario/zas https://github.com/imdario/zas [2]: https://github.com/zserge/zs https://github.com/zserge/zs [3]: https://github.com/cjp/z https://github.com/cjp/z
- sleavey 8y agoYou might want to consider that the name PLY is already used for a popular Python parsing library [1]. [1] http://www.dabeaz.com/ply/ http://www.dabeaz.com/ply/
- atmoz 8y agoThanks for the heads-up, if my project gets more popular and do not just rot in my github account I will consider changing it.
- wheresvic1 8y agoShameless plug: Here's a little tutorial that shows you how you can write your own Static site generator in around 100 lines of code! https://smalldata.tech/blog/2018/08/16/building-a-simple-static-site-generator-using-node-js https://smalldata.tech/blog/2018/08/16/building-a-simple-sta...
- ganeshsurfs 8y agoWhy not try http://ngDocumentor.github.io http://ngDocumentor.github.io ? It needs no generator. Works as a SPA. Works as a Offline app (PWA). Custom routing feature, simpler search. More just one json config file to set up the whole site. Serves markdown files on the fly. Try it you will love it. Works on Github/Gitlab pages as well. No root access required.
- nmca 8y agoI did a crazy thing and used sapper[0] for a recent static site. It has a beta feature that allows for exporting a static page, and it worked really well for me. Fast, modular, es6 and little setup. Would definitely use it again. [0] https://sapper.svelte.technology https://sapper.svelte.technology
- jhoh 8y agoWorking Link: https://sapper.svelte.technology/ https://sapper.svelte.technology/
- robohoe 8y agoI found Hugo to be a convoluted mess. Pelican on another hand was very easy to get started with. Plus it's written in Python so debugging it is easier.
- snicker7 8y agoThe reason why there are so many static site generators is that they are trivial to write (which is why making your own is a good beginner coding project): for {post}.md in in blogdir: if timestamp({post}.html) < timestamp({post}.md): convert_md_2_html({post}.md)
- Spivak 8y agoThat's a good explanation for why there are so many SSGs on Github but it doesn't explain why there are so many in use. Surely someone talented would put all the pieces together and outshine all the hobbyist projects but it hasn't happened yet. So either something is in the way or the problem domain is harder than you describe.
- toxik 8y agoThis looks a lot like a Make rule to me. %.html: %.md generatehtml $^ >$@
- creatornator 8y agoI've actually experimented a bit using make+pandoc as a static site generator/pdf compiler. It semantics of make actually transfer pretty well.
- flukus 8y agoHere's a slightly more involved but still incredibly simple one I put together: https://flukus.github.io/building-a-blog-engine.html https://flukus.github.io/building-a-blog-engine.html Turned out a hell of a lot faster than any static site generator I've used.
- toxik 8y agoThose who are unaware of history is doomed to repeat it, eh. I use makefiles for a lot of things, they're very straight-forward. If you just follow the UNIX design philosophy, your programs are going to be makefile-useable anyways.
- 8y ago
- zhte415 8y agoInteresting there are many many. Does pmWiki count? Files are stored as plain text, though it does go through the php on rendering? A few months ago I saw a recommendation n LinkedIn to use it for a personal-wiki, just storing notes and remembering things. I have found it to be really fast (1G DO node) and super easy to get going and keep doing including from multiple devices - as long as they've got a web browser they're good to go.
- norswap 8y agoYou want to write a simple static website. Now you have to choose between 100 generators. Your life has become a little bit worse. Personally I rolled my own, but I can't say I would necessarily recommend it. But in less than 300 lines of JS it can generate by site from Markdown, with index pages and RSS, as well as watch in the background for changed files and update them live. It was a fun and useful learning experience though.
- pmlnr 8y ago> Now you have to choose No, you don't _have_ to. It's perfectly fine to write a markdown file and render it into html with Pandoc.
- pjc50 8y agoThat's still a choice.
- nulagrithom 8y agoIf you've got decision fatigue before you even start your project then maybe it's time for a vacation. On the other hand, now you have to choose between 100 destinations, and your life has become a little bit worse.
- nkg 8y agoI have become very productive using a simple mix of Nunjucks, for what is really static + VueJS, for UI matters.
- bryanwb 8y agoI have really, really enjoyed building my personal site (https://hotair.tech https://hotair.tech) in Gatsbyjs. I am not sure of how steep the learning curve is as I started using it w/ the intent to learn React and GraphQL. It strikes a good balance of being both a productive framework and letting you use the full features of GraphQL and React. I much prefer it over my previous experience w/ Jekyll.
- nickjj 8y agoJekyll has been working well for me. I have around 190 public posts, dozens of pages and 50+ drafts on my site. With Jekyll-Assets I work with SCSS and everything becomes minified, along with getting md5 tagged file names for cache busting with no effort to set up. When writing a blog post it takes around 2 seconds for live reload to kick in and refresh the post (which works nicely as a near real-time preview when writing). A full site build takes around 10 seconds but I only do this when deploying so it doesn't matter that it takes so long. The only thing that sucks is for whatever reason I cannot get Jekyll to work at all with Docker for Windows which ultimately may end up convincing me to move to a different generator in the next iteration of my site. The devs don't seem to want to address the issue.
- olooney 8y agoI don't see it on this list but I think the Hacker News crowd may be the R blogdown package. (Different than the JavaScript blogdown on the top list; ) The main features for me are good LaTeX support (for formatting mathematical expressions) and R and Python code blocks for creating charts, etc. It's great for a moderately technical blog that has equations, data visualizations, formatted code blocks sprinkled throughout the text. https://github.com/rstudio/blogdown https://github.com/rstudio/blogdown
- claytonjy 8y agoBlogdown isn't there, but Hugo is, and blogdown is mostly an RMarkdown interface for Hugo.
- theknarf 8y agoWorking on my own static site generator, and wow, there's a lot of them.
- deltron3030 8y agoI like the mindshare of the Jigsaw generator with Laravel, it uses the Mix bundler and Blade templating, basically Laravel without the backend stuff. It might be a good choice for people who want to start with a landing page before going full saas. Strange that it's not more popular..
- discreditable 8y agoI love Pelican. It was relatively easy for me to migrate from Octopress (which seems pretty much dead at this point). With pelican it was pretty easy for me to write by own extremely lightweight theme: https://brashear.me/blog/2017/07/30/migration-from-octopress-to-pelican/ https://brashear.me/blog/2017/07/30/migration-from-octopress...
- stadeschuldt 8y agoComing from Python I like Pelican a lot. It also looks like there is an active development going on: https://github.com/getpelican/pelican https://github.com/getpelican/pelican I am still wondering, why the last release was made over 18 month ago.
- discreditable 8y agoMy Python is only marginally better than my Ruby (not great). Even so, developing my own theme was easy following their docs. Looking at their blog[1] they seem to do releases very infrequently. 3.5 was released 2014-11-20. 3.6 was released 2015-06-15. 3.7 was released 2016-12-12. It seems like each release is about a year and a half apart. By that cycle we're about due for one. 1. https://blog.getpelican.com/category/news.html https://blog.getpelican.com/category/news.html
- AndyMcConachie 8y agoPossibly because stability is a good thing in software. Not saying that's the case with Pelican, but I like things that don't change much. It often means developers know what they're doing.
- IronBacon 8y agoWell, I'm still using an ancient version (2.8?) cause the last stable broke the Markdown footnotes' linking (maybe it's a bug in my theme). I'll probably look this week if the bug was fixed, but I'm not in a hurry, last time I updated I didn't realized they eliminated some Jinja2 corner cases that I abused for scoping variables outside code blocs and I think I'm still using the global context in a "creative" way... ^__^;
- tekmaven 8y agoGatsby is absolutely a pleasure to work with. Any react developers should check it out!
- pinkgodzilla 8y agoI tried Hugo, Jekyll and Gatsby. Assuming that a static site is 95% likely a marketing (self, company or otherwise) site and a marketing site needs to impress, a static site generator should be first and foremost built from the requirements of frontend and not leave the user to "theme" some default HTML. Gatsby is ridiculously fast (React based) and its plugin universe is full of all the common features you could ever need. It has built in 1-click service workers plugin for offline access, 1-click plugins for prefetching links you put on your page, auto-inlined-css (in v2), all kinds of markdown + fringe requirements like LaTex, video embedding, things like Call to Action plugins, MailChimp sign-up-here plugins etc. To get a feeling of the snappiness, check out their landing at https://www.gatsbyjs.org/ https://www.gatsbyjs.org/ and their plugins here: https://www.gatsbyjs.org/plugins/ https://www.gatsbyjs.org/plugins/ . The community pushes and PRs at break neck speed every day and is super friendly - can definitely get the support you need. Lastly, it is a great way to "inverse learn React" if the objection is "Wow, I don't know enough React". React by itself is not that opinionated and Gatsby has enough good practices of putting together a React framework for you to use productively. ps: the other frontend alternative would be vuepress, it should feel blazing fast too. Here's another article on why speed is so important: https://www.gatsbyjs.org/blog/2017-09-13-why-is-gatsby-so-fast/#why-is-site-speed-so-important https://www.gatsbyjs.org/blog/2017-09-13-why-is-gatsby-so-fa...
- azangru 8y ago> Gatsby is ridiculously fast (React based) Just wanted to point out that there are at least two kinds of fast: fast to build and fast to load. And while Gatsby-based sites are indeed very fast to load (although I haven't compared a Gatsby site with an optimized Hugo site), they are painfully slow to build. But it is truly a pleasure to work with; that's for sure!
- 8y ago
- benbristow 8y agoI love Jekyll. Made my own site using it integrated with Webpack too. https://www.benbristow.co.uk/ https://www.benbristow.co.uk/ https://github.com/benbristow/benbristow-website https://github.com/benbristow/benbristow-website I kind of cheated at making a 'static site' though as I'm using PHP for some dynamic stuff like my contact form and latest Instagram posts (but that's via AJAX)
- AndyMcConachie 8y agoI used Jekyll until the combination of various Ruby versions, FreeBSD pkg, gems, and unaccountable bloat drove me mad with rage. Have you ever looked at the dependencies for Jekyll? Why does it need a JS compiler? I mean, how many lines of code and how many Ruby packages with very specific version numbers does it take to convert markdown to html? I'm now using Pelican and it hasn't driven me into a rage yet. Happy that development on it is slower and seemingly more deliberate. Then again I haven't had to upgrade it yet.
- blocked_again 8y agoCheckout netlify. They support forms without you having to run a backend.
- benbristow 8y agoI can host my own website on my own server. Why would I want to restrict myself to a third party's servers?
- ccleve 8y agoI'd love to see a graph of the stars over time. Or perhaps a graph of a new-stars-per-month statistic. That would show which ones are getting more popular and which are in decline. Jekyll has a ton of stars, but that's probably because it's been around so long.
- NegativeLatency 8y agoAnd github promotes it
- dec0dedab0de 8y agostack overflow questions, and mentions on hn, or other forums/social media would be good indicators too.
- bobfunk 8y agoWe used to have those charts per site generator on the detail page before the Middleman -> React Static rewrite of the site. Would love to see them back myself. Pull Request at https://github.com/netlify/staticgen https://github.com/netlify/staticgen would be super appreciated, since it might take a while before any of the main contributors will have time to add it back in.
- kaushalmodi 8y agohttp://www.timqian.com/star-history/#gohugoio/hugo&jekyll/jekyll http://www.timqian.com/star-history/#gohugoio/hugo&jekyll/je... Hugo vs Jekyll: Interpolation is in the favor of Hugo :)
- scanr 8y agoI think react-static is pretty good if you want something relatively close to the metal
- petecooper 8y agoI look at static site generators every now and again, and I'm totally overwhelmed at the range. Beyond starting with trying out the popular ones, is there a way to get into this whole thing without losing my way in the rabbit hole? I say this coming from a traditional PHP + MySQL CMS background of 15 years, the irony of the vast array of PHP + MySQL CMSes is not lost on me.
- bovermyer 8y agoUltimately, they all do roughly the same thing in the same way. They're just Markdown-to-HTML converters, with some nice quality-of-life features tacked on. Just pick one (even just one at random will do), and start there. It's easy enough to change your mind later.
- ujuj 8y agoThe only thing I don't like about SSGs is the need to be on a computer that have the right software installed: I use different computers and sometimes I just want to add some link into my website. This leads to too much work for just a link. I've been interested in [1], that is written in Rust and is available in a single binary. This eases the installation process. Something interesting to consider are client-side site generators. I don't think there's a lot of them, but if you want to write your articles on markdown files on github/vim and update your website with a git push, it's a nice thing to consider. I wrote my own tiny one because it's fun (and it works just right for me), but see [2] and [3] if you're interested in these type of solutions. They work well with Github Pages. [1]: https://www.getgutenberg.io/ https://www.getgutenberg.io/ [2]: http://chrisdiana.github.io/cms.js/ http://chrisdiana.github.io/cms.js/ [3]: https://huytd.github.io/azeroth-js/ https://huytd.github.io/azeroth-js/
- azangru 8y agoWell, you can add Netlify CMS to your statically generated web site. That adds a configurable admin web interface through which you can add or edit your pages without installing the generator on the computer you are currently using.
- bovermyer 8y ago...or you could just use whichever one you want, and set up a CI/CD pipeline to automatically run the build process and publish changes. Small up-front time cost, then you can just make your change wherever and let the system do the rest.
- QuinnyPig 8y agoI just wrote about using Pelican inside of CodeBuild on Friday: https://lastweekinaws.com/blog/aws-codebuild-as-a-publishing-platform.html https://lastweekinaws.com/blog/aws-codebuild-as-a-publishing...
- indigodaddy 8y agoWhat about something/webserver that will just parse/interpret/serve markdown files themselves? I think Harp.js can do this?
- tonyedgecombe 8y agoI miss Joel Spolsky's CityDesk software, it was only viable for a single user but it worked well in that scenario.
- paulddraper 8y agoThere needs to be a term for "static DOM site generator" or "non-scripting site generator". (At first blush, I would have called this "static site generator", but now I know better.) I.e. something that performs well on all devices, and is optimized to just providing static data via CSS-styled HTML. Does anyone know of a recognized term for this thing?
- notriddle 8y agoYou mean like https://bors.tech/documentation/ https://bors.tech/documentation/ ? That's generated using Jekyll, and executes exactly zero lines of JavaScript. I think most static site generators, except maybe Gatsby, can do that. Just don't put any script tags in your template.
- dsr_ 8y agoPelican can certainly do that -- just pick a template that doesn't have JS, of which there are many.
- bovermyer 8y agoIt would be nice to be able to exclude certain things in a search. For example, I don't want to see options that are written in JavaScript or use the AGPL license.
- alan_n 8y agoI've tried so many static generators, but they just all fail miserably past a certain point. For a simple blog, just text, etc, they're great. But once you get into adding images, rss, or any sort of complex layout and routing, none of them are really designed to handle that much complexity. Metalsmith came the closest because of it's plugin system, but only because I ended up writing my own plugins and just basically writing a static generator on top of it. But it can't do live previewing at all which is really annoying. Recently I tried Nuxt because I really like Vue, but although these new types of generators are great for handling layout, and the live reloading rocks, they're not really designed for a truly static site, the pre-rendering includes a lot of unnecessary bloat. There's basically a copy of every post both in the html and the javascript, it's also super hard to control it so it's only the posts for that one page. You can remove the scripts manually but then you lose all js functionality. I gave up trying to find a sane workaround. They're not really meant for content that's truly static that you don't need to update. I've given up on this point and have just started to write my own, focusing on fast live reloading and easy config (like Vue's cli) because that's one of the other huge problems with all generators.
- ianwalter 8y agoHave you tried Gatsby? I have tried many SSGs and really like Vue as well, but I tried Nuxt out a while ago and it wasn't flexible enough for my liking. I'm not sure I 100% understand your issue, but I haven't found anything that I can't do in Gatsby so far and I'm blown away by the sources/graphql feature.
- alan_n 8y agoNo, I don't really like react, and it's probably bound to have the same problem as Nuxt. The issue is that the site, at least with Nuxt, is pre-rendered to HTML, right, but it still needs to have Vue (because usually you would want to then use it to then refresh the content). The thing is this, apart from having to have Vue and a bunch of JS, it also adds your posts inline to the script (because Vue can't just extract the content from the DOM (well, it technically can, but this would be a mess for varying reasons). This is a bunch of bloat since I want the site to be static to be fast. You can delete the script tags after the rendering (using something like cheerio), but this gets rid of all your scripts (which I still need some small ones to for example, lazy load images). I could keep them separate and then insert them back in but then I lose the pleasure of using Vue. It's kind of impossible to solve as far as I see.
- nottorp 8y agoSo what would be the recommendation for something that generates static blog-like pages? Assume I know nothing, or maybe python and a liiiittle bit of jinja. Thanks!
- ssivark 8y agoI've hardly blogged in the last several years, but I've tried out half a dozen static site generators (SSGs). I think it could be a nice way to introduce/familiarize yourself with a programming language, beyond just the toy exercises. Once you understand one SSG, they're all very similar in essence, so it becomes a good way of getting up to speed with language features and idioms -- at least in theory. I'm currently playing around with Frog (Racket based SSG).
- smakosh 8y agoGatsby js Jekyll Nuxt js Pelican Hugo
- anderspitman 8y agoAs a few others have mentioned, I highly recommend writing your own static site generator, unless you know the specific reasons you need something more advanced. It's a fun exercise and was a great learning process for me. Here's my personal hacky take[0] You can get pretty far by simply supporting Mustache templates[1], Markdown parsing (even that isn't necessary, though I did it since my old posts were already in Markdown), and a metadata format (ie frontmatter, or something similar. I went with toml files sitting next to my content). [0] https://github.com/anderspitman/assg https://github.com/anderspitman/assg [1] https://mustache.github.io/ https://mustache.github.io/
- davepeck 8y agoDoes anyone have a good theory about why (1) there are so many static site generators and (2) market share is so widely distributed? Is this a case where (1) it's easy to build static generators and (2) everyone's needs are a little bit different... or are there other dynamics at play? Also, static generators and bundlers (webpack, parcel, etc.) strike me as needing to solve many related problems. Do we believe there's a meaningful integration to be reached down the road?
- brillout 8y agoI'm surprised nobody mentioned this but this website and the whole JAMstack thingy is basically a PR stunt from Netlify. Static sites generators and the JAMstack are inherently crippled. With a JAMstack, by design, everything needs to be rendered on the client. This means poor performance on mobile, loss of control over SEO, and virtually no SMO for dynamic content. Kinda funny to promote a crippled stack that hard...
- mo3gut 8y agoOne not on the list is Template::Toolkit. Perhaps it's considered too old-school. TT is stable, available virtually everywhere and (like perl itself) is well documented and works without fuss.
- ms013 8y agoI gave up on these a while ago when I realized a very small amount of scripting (<100 lines) and pandoc gave me everything I wanted to maintain my site.
- gandutraveler 8y agoIs there a SSG plugin built on top of rich text editors like docs to just publish/deploy static web pages?. I remember buildin static website's for non tech friends and maintenance/keep up over time is always painful for them.