a thoughtful web.
Good ideas and conversation. No ads, no tracking.   Login or Take a Tour!
comment by user-inactivated
user-inactivated  ·  3110 days ago  ·  link  ·    ·  parent  ·  post: Why Static Website Generators Are The Next Big Thing

Jekyll is awesome, and there are lots of other great static site generators as well. I host 7 websites on github pages using Jekyll. For a few of them where other people write content, I've set them up with prose.io for editing more like a CMS.

They're simple, fast, and secure compared to CMSs. Web developers get the cognitive benefit of separating things into templates, includes, assets, content, etc. And it integrates beautifully with version control, for rollbacks and knowing who made a certain change, which can prove difficult with CMSs. It's also easy to move between hosts if need be. I'm also excited lately because I can publish all of my static sites on ipfs.

It's not the right tool for every job, but it's great for a lot of sites.





veen  ·  3110 days ago  ·  link  ·  

So you're saying that I could have a private repo and it'll update that to the static website on my own hosting? That sounds fantastic.

I have a Digitalocean droplet (VPS) with Ubuntu on it, do you know some good walkthroughs / tutorials on this? Note: I am not great with command line work. How easy would this be to set up?

user-inactivated  ·  3110 days ago  ·  link  ·  

You wouldn't even necessarily have to have a private repo - you have all of your assets on your own computer, run `jekyll build` (or whatever the command is for the generator you're using) and then it'll output all of the static files to a directory (in Jekyll it's "_site" by default). You then move the outputted directory wherever you want, whether it's github or your own server.

I'm not too familiar with walkthroughs, but for Jekyll I just use the documentation, which is fairly high level and easy to follow. I'm not familiar with any generators that aren't managed primarily through a command line. I think the only commands I ever use are `jekyll new` and `jekyll serve`. Aside from that, it's all git. Probably the biggest barrier would be learning the templating language (for Jekyll, it's called Liquid, and is covered in the docs).

IMO, the worst part about Jekyll is that it's Ruby. After you manage to get it installed, it's great. And luckily, with static site generators, most people elect to install the generator locally, and then copy the output to your server, so you don't have to worry about getting Jekyll configured on your server. I'd recommend github's guide for installing jekyll.