Live data from Hacker News

Ask HN: What's a good static site generator to use for a blog in 2018?

news.ycombinator.com

71–80 of 129 posts

Re: Ask HN: What's a good static site generator to use for a blog in 2018?

#71

Like many others said, Hugo ( https://gohugo.io ) is super-awesome. - Single static binary for any platform for a static site generator; couldn't get better. - The fastest too! - The Go templating is great! It should be fairly easy to pick up by anyone knowing any programming language. I love it especially because it reminds me of Lisp. Example: {{ or (and $a $b) $c }}. (For the folks that are not a fan of Lisp, you…

Everone seems to be raving about Hugo so I'll give it a chance. Let's see how it goes. I did give a quick glance at the templating syntax and it certainly was easy to grasp.

I haven't used Lisp so I'm not sure of how similar they are.

Org mode support seems to be interesting. I've always wanted to pick that up as well. Could you share some good resources you might be aware of? A quick Google search led me to some really old articles. Thank you for bringing this up! I appreciate it :)

Re: Ask HN: What's a good static site generator to use for a blog in 2018?

#72
post #5

This is likely to be an unpopular answer, but the best choice is probably WordPress. I just used it to generate a network of about 40 static sites because (1) it has literally thousands of beautiful, professionally-developed themes for free; (2) same goes for plugins; (3) it's easy to hack if need be; and (4) it probably has one of the easiest-to-use and most-complete content editors, capable of creating both pages a…

I'm not a huge fan of WordPress mainly because of the security issues like the others have mentioned.

I've used it a little over a year ago and found things rather unintuitive when it came to setting up plugins. Not sure if it's gotten any better though. But, if you say it's practical, I'll give it another look and see if suits my needs. Thank you!

Re: Ask HN: What's a good static site generator to use for a blog in 2018?

#73

Like many others said, Hugo ( https://gohugo.io ) is super-awesome. - Single static binary for any platform for a static site generator; couldn't get better. - The fastest too! - The Go templating is great! It should be fairly easy to pick up by anyone knowing any programming language. I love it especially because it reminds me of Lisp. Example: {{ or (and $a $b) $c }}. (For the folks that are not a fan of Lisp, you…

Everone seems to be raving about Hugo so I'll give it a chance. Let's see how it goes. I did give a quick glance at the templating syntax and it certainly was easy to grasp. I haven't used Lisp so I'm not sure of how similar they are. Org mode support seems to be interesting. I've always wanted to pick that up as well. Could you share some good resources you might be aware of? A quick Google search led me to some rea…

> I haven't used Lisp so I'm not sure of how similar they are.

As I said, I can see the syntax to be easy to grasp for anyone knowing any coding language. But Lisp fans would be in for a treat.

In very simple terms, a list function always had the function symbol or identifier as the first element of a list (everything is a list in Lisp), and any number of arguments have to follow after that.

Example of an add function in Lisp:

    (add 1 2)
The same thing in Go templates:

    {{ add 1 2 }}
> Org mode support seems to be interesting. I've always wanted to pick that up as well. Could you share some good resources you might be aware of?

If you use Emacs, the best Org reference is the Org Info manual. Do `C-h i` to open info within Emacs and jump to the Org manual. (You probably aren't using Emacs as you mentioned that you are not familiar with Lisp. So may be this tidbit helps someone else).

If not using Emacs,

- Check out the section on Markup[1] in the official Org manual in HTML. - My blog source in Org[2] - Source of ox-hugo.scripter.co website (100% of the content) from this one Org file [3]

If you don't want to get into too much detail:

    * Heading level 1
    ** Heading level 2, and so on
    *bold* /italics/ _underline_ +strikethrough+
    - list item 1
    - list item 2


    1. ordered list item 1
    2. ordered list item 2
But if you are really getting into Org syntax, here's the mega test file[4] for ox-hugo package that exports to 100's (literally) of Hugo content posts here[5] and gets rendered to HTML by Hugo on https://ox-hugo.scripter.co/test/.

The good news is that you don't have to use Emacs for Org mode, if you plan to use Org mode just like Markdown (and may be a little bit more). If you do use or end up using Emacs, then Org mode is like 1000x Markdown (or may be more :) ).

> Thank you for bringing this up! I appreciate it :)

You are welcome.

Hopefully this response wasn't too much of an information overload.

[1]: https://orgmode.org/manual/Markup.html

[2]: https://gitlab.com/kaushalmodi/kaushalmodi.gitlab.io/raw/mas...

[3]: https://raw.githubusercontent.com/kaushalmodi/ox-hugo/master...

[4]: https://raw.githubusercontent.com/kaushalmodi/ox-hugo/master...

[5]: https://github.com/kaushalmodi/ox-hugo/tree/master/test/site...

Re: Ask HN: What's a good static site generator to use for a blog in 2018?

#74
Hugo is good, but you will need some technical expertise to customize it, unless you use a stock theme/template.

GitHub pages is also a great way to get started quickly - Markdown is easy to learn and there are several cheat sheets out there.

What I did in the end is created my own very simple site generator (calling it that is probably being over generous) - it lacks many features of a full-blown generator like Hugo, but it suits me down to the ground. I then host (for free) on GitHub and publish also to neocities.org (for free). See my HN profile for link to website - from there you can pick up the source code if you're interested.

Good luck with your blogging!

Re: Ask HN: What's a good static site generator to use for a blog in 2018?

#75
post #38

I'm very happy with using pelican for my blog: https://startuplab.io/blog It's very flexible, written in python, easy to customize, has plugins for any purpose. It supports markdown, latex, code snippets (with syntax highlighting). It's very simple to set up and you can use it for any purpose. I've made a custom theme, configured it a bit, and served it with nginx on digital ocean(but you could also host it for free…

Thanks for the detailed reply, however I don't see any links to HN/Reddit in the footer or anywhere else on the mobile page of your blog posts?

Re: Ask HN: What's a good static site generator to use for a blog in 2018?

#77

- Hugo - Travis CI - Cloudflare - GitHub Pages This is how I host my website completely for free with SSL. Whenever I commit it to GitHub it will build and deploy it for me.

Interesting. I've always wanted to give CI a shot. This could be a good start to explore it.

What role does cloudflare play here? Just curious as I don't know what it's capable of doing.

I might end up adopting the same system as well since everyone here has been raving about Hugo. Thank you for the suggestions!

Re: Ask HN: What's a good static site generator to use for a blog in 2018?

#78
post #53

Better to take action now and fix it up later. MVP: You need a domain name, some hosting, 1 index.html at root for the main menu of links and 1 new file for each blog post. Make the title of each file the same as the title of your post like "Whats-a-good-static-site-generator.html" and dump the files in root as you go, link them from the main menu. You can write your posts and make the files using any text editor. Wo…

You're right about that. Also, it looks like I'm not necessarily locked to any particular system since most of them use the same underlying structure. I can easily move to something else when I need to.

I've got the domain, gonna end up hosting it on either Firebase, Netlify or GH Pages and I think I'm settling for Hugo since everyone here has spoken positively about it.

Thank you for your suggestions! :)

Re: Ask HN: What's a good static site generator to use for a blog in 2018?

#79

To me, fretting frameworks is a form of writer's block.

Right? This has been a huge problem for anyone whos's considering starting anything these days. Variety is good, but sometimes I feel that we've just got too many choices and I find them to be exhausting sometimes. Or maybe it's just me? Not sure.

I'm settling with Hugo as it seems to make sense for me. Thank you!

Re: Ask HN: What's a good static site generator to use for a blog in 2018?

#80
post #3

Gatsby is worth taking a look at.

Gatsby seems to be pretty slick but sadly, I'm unfamiliar with React. I primarily work on Django these days. I certainly will give Gatsby once I give React a shot. It's on the list of things I want to learn. Thank you very much!
Post reply on HN