19 ms·
Static Website Generators
- Tomte 10y agoAnd I guess, Lektor and Pollen are still the only ones with a (dynamic) web interface for writing articles and then exporting them (statically)? Besides Bricolage (ancient, abandoned?, never got it to work – even the VM image they provide as a demo) and Movable Type (expensive), of course.
- knlb 10y agoI just use emacs + org mode -> org-publish to generate my site [1] from org-mode with some customizations; it's been the most flexible and fun way to build a site I've had across all my attempts so far, particularly given that I can go meta and also publish the htmlized raw org files at the same time [2]. [1] Publishing config: http://explog.in/config.html http://explog.in/config.html [2] Org Source: http://explog.in/config.org.html http://explog.in/config.org.html
- ymse 10y agoHa, that's timely. I started writing an online tutorial just today and settled on org-mode. Reading your config is immensely helpful. Thanks!
- patrickdavey 10y agoI'm a vim user, but org mode is one of the things that I really like the sound of from emacs. For vim, I use vimwiki[0] in (github flavour) markdown[1] mode, and also publish the entire site to HTML. I really just use it for notes, rather than an entire website, but still, one could. [0] https://github.com/vimwiki/vimwiki/ https://github.com/vimwiki/vimwiki/ [1] https://github.com/patrickdavey/vimwiki_markdown https://github.com/patrickdavey/vimwiki_markdown
- fenomas 10y agoNobody's mentioned Hexo yet (edit: here), so I will. A while back I reviewed the top 5-6 Node-based SSGs and hexo seemed like the best tradeoff between simple and flexible. https://hexo.io/ https://hexo.io/ I also wrote up all the stuff I learned migrating and existing Wordpress blog to static: http://aphall.com/2016/01/migrating-wordpress-to-static/ http://aphall.com/2016/01/migrating-wordpress-to-static/
- sudhirkhanger 10y agoI am a long time WordPress user. I tried a few but didn't like them much. WordPress is the nice middle point of internet publishing. A well designed web, desktop, and mobile interface, themes, plugins, and commenting system. Cost of hosting is a little prohibitive but it works pretty well. I am currently trying out Hexo which seem to work just time too.
- eganist 10y agoYes! I was looking for a decent selection of single-page app SSGs for so long. This is only the second one I've found, the other being Lingon (https://github.com/spotify/lingon https://github.com/spotify/lingon), and this one looks like the only one that can still work as a blog. Does anyone have any feedback or alternatives for SSGs which build static single-page blogs?
- paulddraper 10y ago> single-page app SSGs How does that work? Isn't "single-page app" the exact opposite of a "static site"?
- eganist 10y agoThe "app" in this case would be client-side logic (e.g. written in JS) which might then render the blog client-side by pulling down the text for the blog. Ultimately, everything on the server is unchanging until you do a rebuild with new content. So long as the hosted content isn't dynamically generated server-side when you visit, it's static.
- puppetmaster3 10y agoSingle page app uses .js to load page inside index.html w/ push state. I like this 'serverless' approach.
- philtar 10y agoIt most certainly is not serverless.
- puppetmaster3 10y agoDo you read? Ex: http://martinfowler.com/bliki/Serverless.html http://martinfowler.com/bliki/Serverless.html Or dozens of other? You are not in a cave.
- soared 10y agois there an ssg that is entirely web based? I don't want local files or to use a terminal. I would move away from Wordpress (and would like to) if something let me click a few buttons to set up a simple blog. I don't need anything fancy.. Let me make some basic choices and post my blogs.
- nathcd 10y agoJekyll recently got a first-party admin plugin that might meet your needs[1]. You'd still need to use a terminal to set it up. I'm not quite sure what you mean by not wanting local files, but your files would be wherever you're hosting your site from. [1] https://github.com/jekyll/jekyll-admin https://github.com/jekyll/jekyll-admin
- Malcx 10y agoShameless plug... https://github.com/Malcx/DamnSmallBlog https://github.com/Malcx/DamnSmallBlog
- CharlesW 10y agoIf you like WordPress as a writing and management tool, it's worth noting that there are several static site generators for WordPress.[1][2] [1] http://en.staticpress.net/ http://en.staticpress.net/, https://github.com/megumiteam/staticpress https://github.com/megumiteam/staticpress [2] https://wordpress.org/plugins/simply-static/ https://wordpress.org/plugins/simply-static/
- shakna 10y agoI've used prose [0] with a few clients. Its just a web interface for messing with Jekyll, hosted on GitHub. So you might have to upload the Jekyll site to GitHub once, but after that you can edit it as you like. It also adds some configuration that you can add to Jekyll's config, letting you decide how each menu in the admin console should appear. [1] [0] http://prose.io/ http://prose.io/ [1] https://github.com/shakna-israel/haddonRevamp/blob/gh-pages/_config.yml#L95 https://github.com/shakna-israel/haddonRevamp/blob/gh-pages/...
- ukyrgf 10y agoYou can just develop it on a Cloud9 web IDE.
- tleunen 10y agohttps://phenomic.io https://phenomic.io is missing in the list
- dillonraphael 10y agoHave you used Phenomic? What's the difference to Gatsby?
- aban 10y agoI was going to use it but stuck with Jekyll for now, but they have a FAQ page for that [0]. There were also a few mentions of Phenomic on Gatsby's discussion from a while back [1]. Search for it on that thread. [0]: https://phenomic.io/docs/faq/gatsby/ https://phenomic.io/docs/faq/gatsby/ [1]: https://news.ycombinator.com/item?id=12128989 https://news.ycombinator.com/item?id=12128989
- gilgoomesh 10y agoA number of these (Jekyll, Octopress and Hexo) are disappointingly similar. I wish they offered novel solutions rather than the same Liquid templates + YAML front matter + Markdown/ReStructuredText.
- blacksmith_tb 10y agoI have been eyeing Lektor[1] for a little while, it seems to have good documentation, and an interesting, opinionated dev behind it. 1: https://www.getlektor.com/ https://www.getlektor.com/
- denfromufa 10y agoWhat is the benefit of lektor over nikola and pelican?
- asimuvPR 10y agoI've used lektor and pelican but not nikola. Lektor provides a nice gui where pelican does not (ime). They both work well and pelican seems to have more themes due to it being older. I ended up with wordpres (shrugs).
- the_mitsuhiko 10y agoLektor is based on a flat file ORM so you can structure your data as you like.
- StavrosK 10y agoThe problem with Lektor is that it looks semi-abandoned, even though it's pretty young. Last I looked, the repo has a bunch of PRs that have gone unreplied-to for months.
- mxuribe 10y agoA local web GUI for easier "content management", and a flat-file storage scheme of the content (without needing a database to store the content); that's what makes lektor different from other static site generators (SSGs). (The dev team behind this platform is great by the way!) Beyond these benefits, the rest is very similar to what other SSGs offer - including both the good and the bad that comes with any/all SSGs. While lektor ultimately didn't meet my needs, I suggest that you give it a try, and see if perhaps it fits your use-case.
- sevengraff 10y agoI'm very surprised that Sphinx wasn't listed. It powers readthedocs.org and is generally very popular for software documentation.
- djsumdog 10y agohuh...I would have never through to classify Sphinx as a static site generator, but it is. I think it's just the context of it being used mostly for API docs and tutorials that it's overlooked.
- mikegerwitz 10y agoThere's also Haunt, written in Guile Scheme: https://haunt.dthompson.us/ https://haunt.dthompson.us/
- 0xCMP 10y agoI use Hugo for several websites and I enjoy it a lot. One favorite part is the ability to create content of different types.
- gregmac 10y agoThis statement caught my attention in the article: > It is optimized for speed (Hugo sites can be built in milliseconds) Is that true, or does it just happen to be fast? It seems to me that the performance of a static site generation is irrelevant, and thus time spent on this is really wasted effort. I don't care if it takes several minutes to build.. it'll happen on the CI server in the background, and so long as the actual deployment is atomic, it makes no difference. A site that has time-sensitive content or update requirements of more than hundreds of times per day seems to be a poor candidate for use with a static site generator.
- bobfunk 10y agoIt tends to matter a lot in two cases: 1. During development. Having instant builds running whenever you save is great for the development experience 2. For really large sites. Being able to build many thousand pages in about a minute instead of 20 minutes or way more is a huge difference for the authoring experience.
- mark212 10y agoNumber two is why I use it. My site has about 2300 pages and regenerating the whole thing when I tweak one part or another of the basic template or change themes is less than two seconds. Extraordinarily fast and encourages experimentation at least for me. Maybe folks with better front end skills wouldn't care but it's great in my experience
- 0xCMP 10y agoYea gonna agree with u:bobfunk here that it's really about local development where it matters. And yes it is very fast in my experience, although I don't push it as much as others do. It's also amazing to just have a single binary (or go get -u command) to get going unlike jekyll or the gems to run github's jekyll environment locally. I can't tell you how many times I'd just not blog in a while and need to setup this whole crazy setup for local jekyll and I'd just never write the post because of it. Hugo makes things simple, fast, and extensible. edit: also I usually do the build locally and commit that to a specific repo which has the final rendered version for easy deployment to github and other places. I've made a `Makefile` just to do this easily as `make publish` to get any changes I have build, commited to the rendered repo, and commited to the source repo.
- deleted 10y ago[deleted]
- adjohn 10y agoI recommend checking out https://forestry.io/ https://forestry.io/
- sgallant 10y agoCo-creator of Forestry here (a CMS for static sites). We're big fans of Hugo and Jekyll (obviously). We use Hugo to power our blog and docs https://forestry.io/blog https://forestry.io/blog https://forestry.io/docs https://forestry.io/docs. Using Algolia for search.
- inthewoods 10y agoWe've been testing out Cloud Cannon on our website - www.cloudcannon.com. Different approach from forestry - definitely going to check that one out as well.
- andars 10y agoI've wanted to make a static site generator generator for a while. Run the script and out comes another script with a wicked cool name that uses one of the many markup options, header formats, and templating engines (either manually or randomly selected). Somebody, please make this.
- ncouture 10y agoI probably failed to understand what you described but recently found out about Nikola[1] while looking for publishing solution supporting Org mode. It does support multiple input formats and at least Jinja2 and Mako for templating: - https://getnikola.com/handbook.html#supported-input-formats 1. https://getnikola.com/ https://getnikola.com/
- agrafix 10y agoHakyll supports anything that pandoc supports, so it does both org mode and markdown :-)
- themodelplumber 10y agoHaha. I did this with kung fu styles, wrote a little script that chooses a name, theme, and logo description. It'd be funny to see one for static site generators.
- camoy 10y agoI've actually written this http://www.camoy.info/modoc/ http://www.camoy.info/modoc/
- dillonraphael 10y agoI'm a big Gatsby fan.
- ashitlerferad 10y agoAnother one: https://ikiwiki.info/ https://ikiwiki.info/
- liw 10y agoMaking static websites for over a decade, now. (Can make user-editable wikis as well.)
- AstroJetson 10y agoThanks for the ikiwiki link, I've been looking for a way to do a static wiki for awhile.
- codebook 10y agoNobodu mentioned Hakyll, Haskell static site generator motovated by Jekyll. I've been used it for over 4 yrs and still surprising.
- foxhop 10y agoSort of related and shameless plug but I'm building a "comments as a service" application that isn't disqus. My first target market is static sites. Check it out here: http://www.remarkbox.com http://www.remarkbox.com
- callmeed 10y agoSince we're shameless pluggin', I have a Jekyll plugin that will display an image gallery from a folder (with a single liquid tag). https://github.com/callmeed/jekyll-image-set https://github.com/callmeed/jekyll-image-set
- stblack 10y agoNo online sample or demo?
- andrewmunsell 10y agoAlso sort of a related, shameless plug-- I've been working on Formingo (https://www.formingo.co https://www.formingo.co), a form processing service for static sites so you can receive your form submissions directly to your email without the need for server side code or your own backend. I've actually had a couple people ask me about comment systems that were an alternative to (and more simple than) Disqus, so it's cool to see someone working in that space.
- callmeed 10y agoThis is cool. When do you plan to have paid plans available? I'm working on some Jekyll landing pages and I need form options for people.
- andrewmunsell 10y agoNot sure at this point. If you need more than the default 500 submissions per month, shoot me an email (andrew@ the Formingo domain) and I can hook you up ;) (same goes for anyone else reading). I'm working on expanding the service a bit before I get into paid plans or anything. The drag and drop form builder is coming soon, which will also work with static sites (using JS to embed the form, and eventually have a couple other options such as just generating the HTML for you so JS isn't required for your visitors)
- Pxtl 10y agoIve been trying to make Sandra.snow work for me but it seems to be so focused on azure and ssg-as-a-service that I can't figure out the simple parts.
- cglace 10y agoI've been using cactus and really like it. Really simple and uses the django template engine.
- saosebastiao 10y agoWhat are people using for hosting? I've thought about using github pages, but css ended up being severely limited.
- detaro 10y agoGithub Pages can serve any static files, so I don't understand what you mean by "css being severely limited"? If you meant the Jekyll support build into GitHub, you could use a free CI service to run any other SSG, and push it to GitHub pages or any of the other suggested solutions. If you want everything from one service, GitLab uses their CI service for GitLab Pages and have prepared templates for many SSGs already.
- ashitlerferad 10y agohttps://branchable.com/ https://branchable.com/
- bismark 10y agoI use https://nearlyfreespeech.net https://nearlyfreespeech.net. Pretty cheap and I leverage modrewrite rules quite a bit (which is why say github pages won't work for me).
- imjared 10y agoS3 works really nicely. I'm building my Octopress-based site using snap-ci (free for public builds). It was fairly straightforward to configure for use with S3 and you can run just about anything you want on it.
- hawkice 10y agoI rsync the files to a server where nginx serves them. The smallest server option at your VPS of choice will be plenty, particularly if your site is reasonably lean or less than mega-popular.
- foxhop 10y agoIf you want to use sell hosted, use nginx on Joyent - you can get a 128M container for $2.16/m Then if your site becomes famous - drop cloud flare in front. https://www.joyent.com/pricing https://www.joyent.com/pricing
- city41 10y agoI've been using wintersmith (http://wintersmith.io http://wintersmith.io) to power my blog for years and am very happy with it. It's incredibly flexible, is hackable at just about every level, and has no problem if you just want to dump some html/css/js into a directory and serve it. So I'm able to "host" several of my projects right within my blog.
- tootie 10y agoAre there any real differentiating factors or are there so many because they're so easy to do? I built a custom one for a client once for no real reason.
- city41 10y agoI think one reason there is so many is there tends to be at least one for a given language. That way you can fire up npm, pip, cargo, whatever you're most comfortable with and have one installed.
- fenomas 10y agoWhen I reviewed a bunch of SSGs looking for the one for me, the differentiators were: * What language it's in (assuming you want to be able to hack around issues if you need to) * What intermediary formats it uses (EJS/jade/stylus/LESS/SASS, etc. - assuming you don't want to publish a site that looks like the SSG's demo page) * How opinionated it is about its output pipeline. Some SSGs have fully-formed plugin systems, so you can choose your favorite minifier, add a transpiler, etc., which is powerful but more work. Others just do what they know how to do and if you want to add steps you'll have to post-process the output. That said, running through the "publish a hello-world page with default theme" was pretty much the same for every SSG I tried. You have to really start futzing with things to see the differences.
- rodgerd 10y agoCross-platform support and dependencies would be one: hugo shines for me because every modern *ix, OS X, and Windows are all first-class golang environments, so it Just Works anywhere, and you don't spend years waiting for a package manager to churn through a dependency tree to install or update. Ruby or node? Not so much. Also, depending on who you are, how many out-of-the-box themes, and how sane/easy it is to create or customise.
- mkoryak 10y agohere is a better "article" https://staticsitegenerators.net/ https://staticsitegenerators.net/
- tylerjl 10y agoIf you're inclined to eschew hosted comments a lá Disqus and want to own it yourself, note that Discourse supports comment embedding for static sites which I've used for a couple years and have been very happy with: https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963 https://meta.discourse.org/t/embedding-discourse-comments-vi...
- wmu 10y agoFor my website I have a custom python script, and I use RestructuredText for markup. If I started now, I would replace the script with a set of Makefiles... or better use any existing generator.
- scrollaway 10y agoHugo supports rst, for what it's worth. There's still time to make the jump :)
- wmu 10y agoThanks, I've never heard about Hugo, I've seen Sphinx mentioned by mixmastamyk. But... I wish I had enough spare time to do migration. My TODO list is getting longer and longer. :)
- mixmastamyk 10y agoSounds like sphinx.
- johnmw 10y agoI crave simplicity in my life right now and am using markdeep: https://casual-effects.com/markdeep/ https://casual-effects.com/markdeep/ I write my documents in markdown and add this tag at the end of my document <script src="markdeep.min.js"> I "publish it" by copying it to my server and renaming it .html * note: To get started, here is the suggested starter document: https://casual-effects.com/markdeep/starter.md.html https://casual-effects.com/markdeep/starter.md.html
- thomasahle 10y agoThat's impressive! It even has math support! I do wonder about generating the diagrams at every page load. Seems like markdeep might as well have been a static generator?
- versteegen 10y agoYeah, but you can easily copy-paste the generated html into a file. Just append '?export' to the URL. I definitely would use it in that way.
- bbx 10y agoI'm not sure if this counts as a "static website", since the page is not delivered exactly as stored. It requires JavaScript to actually renders the page, which seems like an overkill.
- Already__Taken 10y agoThat's just client side templating. Which has the same problem they all do of being greeted with a white page until ALL the content is ready. If someone is prepared to accept this it's not that hard to accept generating the html page yourself and uploading that.
- masklinn 10y ago> That's just client side templating. Which has the same problem they all do of being greeted with a white page until ALL the content is ready. Or being greeted with a white page period if you're using a non-JS enabled HTML client (noscript, CLI browser).
- z3t4 10y agoOne complain about static generators is that they often require the use of HTML or any other markup language. Users just want a management system with a friendly WYSIWYG editor. They don't care if their site is static or generated on the fly by the server.
- mouzogu 10y agoIs there some way to use a static site generator with a flat file database utilising standard CRUD functionality? To me, using a static site generator and handing off database to another service like firebase or other sas, although works really well and has many benefits is still an external dependency I would rather live without. It also somewhat defeats the point of using a statit site gen for my use case anyway. This is the main thing stopping me from switching from php/mysql.
- StavrosK 10y agoI used Lektor and that's what it does, and, AFAIK, it's also what all other SSGs do (Jekyll/Hugo/Pelican/etc).
- Animats 10y agoI'm still using Dreamweaver. WYSIWYG HTML generation. You really want to lay out web pages in in Markdown?
- therealmarv 10y agowell, if you are happy with it, stick with Dreamweaver. Markdown is not for layouting, it's more for writing and reading the source code without hurting your eyes ;)
- freekh 10y agoFor a client I built a custom one (~150loc) that uses react templates and builds files from markdown on contentful. By using react templates, the static website and frontend code can be written in the same manner and our designer can start with something then hand it off to our frontend eng without fuzz. The designer wanted to learn react so she's technical enough to write jsx (which might not be the case for everyone). Ping me if we should see about OSS.
- marban 10y agohttps://staticsitegenerators.net https://staticsitegenerators.net Boom.
- stanislavb 10y agoOK, this list rocks! Thanks for sharing it. Btw, on LibHunt you can compare the projects by dev activity as well - https://selfhosted.libhunt.com/categories/1986-static-site-generators?order=activity https://selfhosted.libhunt.com/categories/1986-static-site-g...
- qznc 10y agoalso https://www.staticgen.com/ https://www.staticgen.com/
- mike503 10y agoHave really wanted to look at making WP into a static site generator. Have too many clients using WP that could be using it as a static site but won't move away from it... So the admin backend / familiar publishing interface but generating it out to something that could be dumped into S3z Some people have done variations of it but not well or easy. Is easy enough to trap events that should trigger page regeneration. Just haven't taken enough time yet. The AWS CLI has extremely amazing performance, having something that could leverage that kind of multithreading for publishing would be great. Especially for the initial site publish. If anyone is interested in working on this project or taking it on (I'm happy to contribute ideas and/or money) feel free to reach out. mike503 at gmail.
- jpkeisala 10y agoThat is a great idea for a plugin.
- keybits 10y agoSandstorm lets you generate static sites with WordPress: https://apps.sandstorm.io/app/aax9j672p6z8n7nyupzvj2nmumeqd4upa0f7mgu8gprwmy53x04h https://apps.sandstorm.io/app/aax9j672p6z8n7nyupzvj2nmumeqd4... It's a one click install and has additional security / isolation benefits provided by Sandstorm. There are currently a few limitations (e.g. plugin installation requires manual uploading of files).
- reitoei 10y agoBeen a few years since I looked at WP, but isn't this essentially what the super cache etc. plugins used to do, i.e. generate static versions of pages?
- zuccs 10y agoYes, but there is still a vulnerable (dynamic) WP backend sitting on the same domain name.
- lenkite 10y agoJekyll has the significant advantage of support Asciidoc out of the box as Asciidoctor is written in Ruby. We really need alternative asciidoc implementations.
- davidroetzel 10y agoPlease note that asciidoctor already is an alternative implementation. The original asciidoc tool (http://www.methods.co.nz/asciidoc/index.html http://www.methods.co.nz/asciidoc/index.html) is written in python. Both, the original and asciidoctor, offer a CLI tool to convert asciidoc to different formats (and there is always pandoc). Additionally, asciidoctor aims to integrate with JVM languages courtesy of JRuby. So you have multiple implementations callable (in one way or another) from any language imaginable.
- neogenix 10y agoWe are running a React based static site using https://instant.cm https://instant.cm for content management. Works like a charm and Instant basically works on every static site.
- forlorn 10y agoThe main problem for me is that the absolute majority of them target blogs and if you try to adapt them for a more complicated website you gonna dive very deep inside the code or continue constant search. Now I look at hugo as it seems to be a more general-purpose tool that allows to play with structure and content types.
- the_other 10y agoAssemble.io served me well for a number of projects, commercial and private. https://github.com/assemble/assemble/ https://github.com/assemble/assemble/ I've not touched it in about 20 months, but when I was using it more often, I found the documentation a bit weak. Everything you'll need is there, but possibly not written in the way you'd hope.
- ZmFydA__ 10y agoI found Harp.js pretty good for a general purpose static site gen. It's basically just a nice pre-configured jade/ejs/sass/less/coffeescript/browserify package. As long as you follow the 'rules' in terms of project structure, it just works as both a server and a static renderer for the above. It can be as complex or simple as you like - you could use it for a blog even, you'd just need to write some of the logic yourself in your templates. I have used it personally for simple 2-3 page sites, where all I want to do is use some simple templates, compile some sass and bundle my scripts, without having to faff with config and build pipelines.
- raben_ 10y agoYou should try Lektor (https://www.getlektor.com/ https://www.getlektor.com/). It has a flexible data structure with little assumption about the final product.
- StavrosK 10y agoI used lektor for http://portfolio.stavros.io/ http://portfolio.stavros.io/ and it was very easy to make what I wanted. I kind of assumed Jekyll and everything else would be like that too, are they not?
- stephengillie 10y agoI made a somewhat unconventional static site generator in Powershell, as part of my Arkdata project. It produces flat HTML reports every minute, which IIS (or any other web server software) can simply serve. It calls a JavaScript file, as I was playing with sortable columns, but works without the file. I use a mobile CSS file for better mobile display too. Github: https://github.com/Gilgamech/ARKScrape https://github.com/Gilgamech/ARKScrape Demo site (IIS up, but it's not currently generating reports): http://gilgamech.com/ark/PvP-Hardcore-OfficialServer92.html http://gilgamech.com/ark/PvP-Hardcore-OfficialServer92.html
- koevet 10y agoWhat would be a sane deployment workflow for a static site generator, so that the static content ends up behind an Apache web server in my box? edit markdown -> push github --> server does a pull -> builds -> deploy ?
- meritt 10y agoMaybe I'm just oldschool but I've never understood the point of these. What's wrong with varnish + [any dynamic platform]?
- newscracker 10y agoAssuming the learning curve to use a static site generator is addressed, I would say simplicity and stability are key points the the users of these appreciate. For example, even though I'm technically savvy, I struggle with Wordpress (wordpress.com) and its unintuitive UI. Almost every other (major?) release changes the locations of items and starts having some new-age UI vs. classic UI differences. I'm guessing that many other dynamic platforms are also bloated a lot when one looks at the features that most people use. Of course, there are dynamic platforms like Ghost [1] that have made it simpler, but Wordpress is still very common (so are other heavy platforms like Drupal and Joomla). For those who do use these, my best guesses on the benefits are, in no particular order: 1. The speed of transmitting and rendering the pages. 2. Flexibility to host the site anywhere where there's just a web server, even a low powered, low resource one (no need to look for mod_php or for a host that allows running rails or anything else). 3. Simplicity of having all content stored as plain text in files. There's no database to fiddle with or administer. 4. Flexibility to easily create their own templates (probably using a favorite templating engine). 5. Better and simpler control over security since the web server and the underlying OS are the main concerns (without adding several more layers on the server - this may be an oversimplification, but there are fewer things to worry about in general). 6. Better stability (fewer moving parts). 7. Version control of content, if one uses git or something similar. [1]: https://ghost.org/ https://ghost.org/
- guitarbill 10y agocheaper, less maintenance. dynamic platform still needs more setup than static site generator + cheap, html only hosting (e.g. github pages). besides, mis-configuring a static site generator has way less security implications.
- wazoox 10y agoWhat about using whatever engine you want, then extract static pages with a script using good ol' wget -r ?
- vidarh 10y agoI sort-of-but-not-quite did this when migrating my old dynamic site to static generation: I used my model API to build a list of all the pages and then faked requests by building my own request objects that I called my Sinatra app with. Made for a quick and dirty way of reusing my old code, and means I can still run the dynamic version for dev/testing.
- jdmoreira 10y agoI considered using one of these but then I realised all I needed was pandoc and a makefile.
- jbb555 10y agoWhy is that website only using the middle of the page, and has a blank line between every line of text. Is there some competition for who can use as little of my screen as possible in a useful way?
- faizmokhtar 10y agoIt's to increase readability. An ideal column width can help users to scan through the paragraph effortlessly. http://ux.stackexchange.com/questions/3618/ideal-column-width-for-paragraphs-online http://ux.stackexchange.com/questions/3618/ideal-column-widt...
- yannovitch 10y agoThe main question for me is comments. I don't want to use something like Disqus, and to require something like Discourse would cancel the whole point of having a static site generator that I can host on Github Pages or Gitlab pages. Ideally, what I would like to do is to have an hackernews post automatically generated for each post, and to redirect people to the HN post if they want to comment, but I am not sure that HN allow this kind of use ?
- freshyill 10y agoThat would be absolutely awful. Imagine if every site did that. Would this be a site you would want to visit? Maybe what you want to do is have a link that sends you to the HN submission page with the fields pre-populated. That wouldn't be so bad.
- majewsky 10y agoAnd then, when your site sees a HN post for the article, have it replace the submission link by a link to the discussion.
- danneu 10y agoThe comments on my technical blog were always so friendly and encouraging. People telling me how my tutorial helped them or answering each others questions. Redirecting them to the HN pit of cynicism and leave-no-stone-left-unturnedism sounds awful. :)
- talideon 10y agoThere are ways to implement that kind of thing in a relatively straightforward manner. It does, however, require some kind of non-static element in the site if you want comments embedded in the site or page. Most SSGs have some kind of plugin system (both Pelican and Lektor certainly do) that would allow you do something like what you want with the HN integration you're considering. Alternatively, you could use something like Isso (https://github.com/posativ/isso https://github.com/posativ/isso), Kaiju (https://github.com/spf13/kaiju https://github.com/spf13/kaiju), or Hashover (https://github.com/jacobwb/hashover https://github.com/jacobwb/hashover). I don't use any of these, so I can't really tell you how good they are, but they're options, and far from the only options.
- yannovitch 10y agoAlso, do you know any SSG which allow me to have a really complete home page like http://demo.tagdiv.com/newspaper/ http://demo.tagdiv.com/newspaper/ , where I can clearly display separated category with last articles by category, and with a thumbnail automatically attached to the post ? Sort of a "magazine theme" or a "newspaper theme" for a SSG.
- StavrosK 10y agoI'm not sure exactly what you mean, mainly because I think all the SSGs can do it. I tried Lektor recently, and I don't see why you shouldn't be able to do exactly this. It's not even hard (unless I'm missing something). EDIT: Maybe what I'm missing is that other SSGs are very opinionated, while Lektor is not.
- reinhardt1053 10y agoAnother good alternative is Grav https://getgrav.org https://getgrav.org
- lsaferite 10y agoThat's not a SSG, is it? Last I remember reading about it, it was still a dynamic site, just powered by a flat file DB.
- fiatjaf 10y agoAnything that supports .docx documents?
- skosch 10y agoWhat why?
- fiatjaf 10y agoThere are people who like it.
- rschuetzler 10y agoSure. Just save it as the terrible HTML that Word generates on its own.
- skrowl 10y agohttp://www.staticgen.com/ http://www.staticgen.com/ seems to provide a more exhaustive (and searchable) listing
- Nzen 10y agoFor those thinking of writing a ssg as a challenge, I recommend reading Rhodes and Rocco's _500 Lines or Less_ [1] chapter about an incremental build system. It describes the general strategy behind tup. [1] http://aosabook.org/en/500L/contingent-a-fully-dynamic-build-system.html http://aosabook.org/en/500L/contingent-a-fully-dynamic-build...
- RodericDay 10y agoGreat link! I'm building my own SSG for fun and this is something I've been thinking about tackling for a while.
- erjjones 10y ago.. nanoc, http://nanoc.ws/ http://nanoc.ws/
- martin_a 10y ago"These days, speed and security is the name of the game." And it´s no problem to achieve both with WordPress. Maybe my mileage varies enormously from everybody else, but I am maintaining about 40 WordPress instances. We have tools to manage updates remotely, make fully automated daily backups, all sites are rated with 85 or more points on Google Page Speed Insights (YSlow and Pingdom Tools don´t rate bad either), we didn´t have any breaches or hacks in the last two years (been in the company for that long) and our clients can easily manage their sites with the built-in tools from WordPress. We have locked the sites down, eliminating attack vectors as far as we can. All sites are using caching tools or even full page caching to improve the speed. No complains and complications at all. Oh, and we have comments and user registrations and more... It seems most people just can´t handle WordPress the right way. It´s complex software and you have to know (and learn) what you are doing. Installing the first plugin you stumble upon, ideally from a shady developer who sells it to a malware distributor 2 months later, is a pretty fine way to run you into "WordPress is slow and insecure". Free themes, always install several at once , you never know when you need one, are another great way, too. But yeah, just throw some fancy JS framework and Markdown at the problem and then start to wonder how you could possibly get some commenting system up and running. WordPress is quite fine software. For sure, it has flaws and some of them get fixed slower than you would wish, but it´s not bad in the end, if you know what you are doing. Finding people who know what they are doing is probably hard, but that´s the same for everything.
- mattmanser 10y agoI don't disagree that wordpress is fine, but claiming it's easy to manage after saying you have a team to manage yours and have setup a load of software to handle its complexity for you is odd. And then you say "most people just can´t handle WordPress the right way", which is basically another way of saying "it's not easy". And 85 points on Google page speed insights or yslow are generally useless metrics. They give as much weight to complaining about a 5kb image not being compressed properly as not having a cdn. It's automated dumb, they're stupid tools with quite often stupid rules. Like I just checked a site I'm responsible for and lost points for not compressing a js file that would save 524B. Yes, that's bytes. That's not contributing to site slowness at all. And yet at no point did it say "hmm, you've got rather a lot of poorly optimized js there".
- lllorddino 10y agoStatic site generators are easy to learn and host for free on Github pages but setting up TLS with a custom domain name is a pain. I currently have Cloudflare in front handling that for me.
- juliangoldsmith 10y agoOP is a paid shill for Netlify. Previous thread: https://news.ycombinator.com/item?id=12401849 https://news.ycombinator.com/item?id=12401849
- mxuribe 10y agoI've tried pelican, lektor, hugo, and even a cobbled-together flask-based (using frozen pages module) custom static site builder. One of the biggest challenges/time sinks/annoyances of adopting any of these types of platforms is the time spent on the initial wiring up of the templates. Maybe I'm lazy in this regard, but I'd rather use a GUI/WYSIWYG interface to do the initial UX (not talking about design here, only placement of site objects/elements) for the site within the context of the relevant template. I don't mind spending a few minutes on setting up the build environment, setting up any dependencies, because its a local app that's being installed, so I get it that it requires a tiny investment in time. But setting up the templates, boy, that annoys me; especially for small sites which only have few pages and infrequent additions. Case in point: I really wanted to use lektor; it's elegant persistent storage mechanism (no database required, basically text files organized within folders), and its brilliant idea for use of a local web GUI were what attracted me to it in the first place. But setup - for example - was annoying as hell on Windows (hey some of us can't afford to keep buying Macs!), and then of course after the install/setup comes the wiring of the templates (ugh). I can not imagine a conventional (non-dev.) user - who I would guess is a good candidate to extract great benefit from using a web GUI - won't have the patience or inclination to dive into code to wire up the templates. I don't mean to pick on lektor (I highly respect the team behind this!!), but it is an example of what most of these static site generators do: they mean to simplify things but 1 or 2 aspects of the system seem like quite a time sink.
- wsvincent 10y agoI've used Lektor recently and I think you're missing its main advantage: it does NOT aim to introduce web dev to non developers or to dramatically simplify the process of wiring up templates. In fact, its use of models is an additional step in the traditional process for static site generators. BUT...once setup by a developer, Lektor's structure and Mac app allows a non-technical user to edit files and publish changes to a website, which can be hosted on S3 or other options for peanuts and has none of the security issues that afflict Wordpress. So viewed through the lens of a potential replacement for Wordpress, I think Lektor is pretty phenomenal. The idea of a Static CMS--whether Lektor can pull this off or not--just makes so much more sense than our current CMS model.
- neya 10y agoHere's my experience: I previously used Middleman to build my blogshop and all was fine until I added more complexity. The codebase grew large and that's when I really hit the (Ruby) language's limits (too much type checking). My intention is not to turn this into a language war, but I think using a good static site generator written a strongly typed language helps a lot. I considered Hugo, but eventually I decided to write my own in Scala and it has served me well. A good static site generator should unleash a slew of goodies including code-reuse, viewing your website as a collection of functional components rather than just a bunch of partials. It's almost a full blown MVC project. For example, my blogshop (not exactly 100% static) has 3 types of "Marketing" components - one of them is a widget asking for email subscriptions, the other is a popup for displaying offers, or email subscriptions based on the view it is used in, based on the parameters passed to it and finally the last one is a recommendation engine. I don't trust Disqus nor Facebook especially after Facebook lost all my comments once (long ago, though). So, I host microservices for each of the components of my blogshop - One for recommendations, one for comments and so forth. They all live inside Appengine and I hardly hit the paid tier. The best part is that my blogshop can be written in any language I like and I can afford to write my other components in other languages. For example, I wrote my recommendation engine in Python, wrote my comments system in Scalatra. They all communicate with JSON APIs with each other. For my authentication service, I use something called Apache Shiro. So, my static website is basically talking to each of my service through Ajax and injecting content using JS from the response from my microservices. I know this isn't everyone's cup of tea, but it really works well for me and is much better than using Wordpress which is something generic that is forced to fit into my workflow/business model.
- JeremyMorgan 10y agoI'm not so sure Octopress belongs on this type of list anymore. I've been using it for about 4 years now, and I simply haven't had the time to convert it to anything else but plan to as soon as I can. Over the last couple years I've dealt with countless type error issues, gem incompatibilities, etc. I have one single machine that Octopress generates my site from now, and it's an old Linux install that I refuse to update (because that will break OP). I believe the author tried his best to make what's essentially a clever Jekyll hack work as well as he could. He's tried creating a newer, smarter version but I'm not sure what the current status is. I'm guessing it's going slowly because most he, like most people, don't have time for such a huge project that isn't paying bills. I appreciate the attempt for sure, it worked great at first. I don't want to sit and complain about a free product but would caution others about investing in it heavily like I did. I spent a considerable amount of time on overhead with this product as it sits. There are much easier (non Ruby!) solutions out there.
- gotofritz 10y agoSame here. I am right in the middle of moving to metalsmith, it's much saner
- garfieldnate 10y agoSame here, I appreciate the work that was put in, but it has become a major problem for me. My torment here: http://garfieldnate.github.io/blog/2015/07/20/hacking-through-an-octopress-update/ http://garfieldnate.github.io/blog/2015/07/20/hacking-throug.... Any time I want to write a new blog post, the release is a big ordeal, and all of the commands are very slow. It's a mess.
- tracker1 10y agoI think the future may be CMS-style applications that do static publishing. Either run locally (may be a great use for electron actually), and/or as a service. At least in this space competitively, the biggest complaints tend to center around the amount of manual configuration/changes... opposed to the overhead of say wordpress. The only downside to static publishing to say S3/ABS is that you loose server-side analytics to some extent.
- mxuribe 10y agoBut then, couldn't you insert the google analytics javascript snippet within the html that gets loaded/served up from S3? Or did you mean something like piwik? I have to think S3 would not be a block here, as many users of static site generators also use some sort of analytics tool.
- tracker1 10y agoThere are bits that JS based tooling will miss in terms of a bigger picture... they don't represent your real load when you run a site that is getting hit by a lot of different smaller search bots. Of course, once you're on s3 or a similarly cheap static delivery option (and/or CDN), you may not actually care.
- wodenokoto 10y agoDreamweaver seems kind of relevant again with the resurgence of static site generators. It had (has?) powerful wysiwyg for both developing site layout and mechanics as well as for writing content and can publish content to server.