Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The advantage is that the resulting website being just static pages will be much faster and secure that your hosted wordpress. And compared to wix etc, you have a lot more control on the appearance and structure of your website, because you can use wathever static website builder you choose


How is it more secure when you're still accessing an API? Wordpress itself might not be the best product but other fully-hosted services are all the same, whether they render the site or just give you an API.

A CDN is equally fast when the content is cached, and if you're building the entire site as static pages then it's not really a dynamic site in the first place and can also be done with HTML or markdown in the same repo.

The fine control seems the be the only real advantage, at the cost of more moving pieces.


> How is it more secure when you're still accessing an API?

It only accesses the API with a read-only token during the build process.

> it's not really a dynamic site in the first place and can also be done with HTML or markdown in the same repo

This is definitely true and was an option we considered, however colocating hundreds+ posts with code made the repo unnecessarily heavy and slowed our build time drastically. Our content creators also didn't want to use git to edit their content (they would have to learn git / or use the web UI which is a suboptimal editing experience), nor did I want content creators in our repos.

> The fine control seems the be the only real advantage, at the cost of more moving pieces.

Lots of other advantages that I won't outline here, but our data is completely decoupled from our frontend now, so we can do cool stuff like crossposting to different properties via webhook, data cleanup via API (I ran all the blog posts from WP through some remark tools so we have a more standard look and feel), etc... Might not be the right setup for you, but it works really well for us!


Good luck getting content editors to commit code to a repo or in markdowns. The contentful + netlify setup is really elegant.


If you're using Contentful then how is that different or better than wordpress or any hosted system that is made for writing posts?

The only 2 advantages of splitting this into separate systems is extra customization (even though hosted solutions are already very flexible) and compiling the entire site into static files. The 2nd seems to be more of a thing for devs to enjoy rather than something that makes a real difference to users, especially when you're already using a CDN.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: