Live data from Hacker News

Build Static Websites

eager.io

21–30 of 60 posts

Re: Build Static Websites

#21

"never has to be updated" Not sure what is meant by this.

It's referring to system updates. The need to update your MySQL version, or your Bash version when there's an new vulnerability. All the things you have to do to keep a server on the internet secure and operational over time.

Re: Build Static Websites

#22
post #10

Earlier quoted context omitted.

Just to take it a step further though, in a world where every browser can run Javascript and make AJAX requests, which of your requirements can't be handled by the client communicating with an API directly? Considering sessions for example, local storage is supported by virtually every browser you can name: http://caniuse.com/#feat=namevalue-storage In my experience, it's significantly easier to scale an API than a t…

Why can't sessions be handled by by communicating with an API directly?

Sorry if I was unclear, I was saying sessions _could_ be handled by communicating directly with an API.

Re: Build Static Websites

#23

Static website generators seem to come and go -- would anyone like to comment on one they like that seems to be lasting the test of time? The obvious one seems to be jekyll (possibly with octopress on top of it), but I'm interested in any others.

It's a bit more technical, but most of my projects use Gulp with the necessary plugins to handle the specific requirements of the project.

Re: Build Static Websites

#24

Static website generators seem to come and go -- would anyone like to comment on one they like that seems to be lasting the test of time? The obvious one seems to be jekyll (possibly with octopress on top of it), but I'm interested in any others.

I'll put in a vote for Hexo: http://hexo.io/

Node.js-based, lots of plugins available via npm, sane themeing syntax. I have a script that generates my site and then pushes it to S3.

My site, such as it is, is available here: https://github.com/drhayes/drhayes.io

Re: Build Static Websites

#25
post #2

How do plugins like WP Super Cache https://wordpress.org/plugins/wp-super-cache/ compare with straight HTML pages? The extra overhead is in the PHP serving up the cached HTML page, but how effective is it in comparison? More of the static site development setups don't have an admin system that compares with WP, is there a WP plugin to export to a static site? Edit: WP caching benchmarks http://cd34.com/blog/scalabili…

If you configure WP Super Cache correctly (e.g. rewrites), you won't be running any PHP when visiting the cached version of the site. So there's really no need to "export" anything.

Re: Build Static Websites

#26
I get the point he's making, but when I want to add something as simple as a counter my website already stops being static. The question you have to ask yourself: How many static websites are in your "favourite" folder? When I look into it, I have a hard time finding a single one.

Re: Build Static Websites

#27
I like the static site idea (I used it for years for my personal site), but I also like having a web front end for editing. I can't find a static site generator with a dynamic admin/posting end. Anyone seen one?

Re: Build Static Websites

#28
post #27

I like the static site idea (I used it for years for my personal site), but I also like having a web front end for editing. I can't find a static site generator with a dynamic admin/posting end. Anyone seen one?

For many use-cases, http://prose.io works well.

You can then use TravisCI (or the like) to trigger the site rebuild and deployment.

Re: Build Static Websites

#30
post #26

I get the point he's making, but when I want to add something as simple as a counter my website already stops being static. The question you have to ask yourself: How many static websites are in your "favourite" folder? When I look into it, I have a hard time finding a single one.

The counter could be loaded in by Javascript. If it's backend becomes overloaded it is the only part of the page that fails.

(On the other hand, I don't like using javascript for things that don't need it, so it's not soo clear cut...)

Post reply on HN