News for hackers. Stuff that matters.
Re:Moving from Wordpress to Hugo by Theizestooke on Saturday March 11, 2017 @06:45AM (#13845149)
If you worry about Wordpress and security, and like the idea of having a static site, maybe check out Simply Static (https://wordpress.org/plugins/simply-static/). It's a WP plugin that creates a static copy of your site. Just upload to your server and unzip, and you're done.
Re:Moving from Wordpress to Hugo by knight17 on Saturday March 11, 2017 @08:58AM (#13845417)
It is slow: it takes time to create the static output, especially if you have more than a few posts. For infrequently updated sites and blogs this plugin may be an excellent solution as it allows you to access a world of WP themes.
Re:Moving from Wordpress to Hugo by ploggingdev on Saturday March 11, 2017 @09:57AM (#13845594)
If the intention was to learn how to work with servers and experiment with Ansible and Caddy, that's fine. Otherwise hosting a static site on a VPS is just overkill, from the initial setup process for a VPS (ssh config, unattended upgrades, firewall) followed by installing Caddy and using Ansible.

It's easier (and free) to just host it on Github pages or Gitlab pages and use Cloudflare as a proxy.

Re:Moving from Wordpress to Hugo by tyingq on Saturday March 11, 2017 @10:18AM (#13845666)
Two other free options I saw in a recent thread here are Netlify and Firebase hosting. Firebase looked particularly attractive as it provides a CDN as well as config driven control of things like redirects, headers, etc.
Re:Moving from Wordpress to Hugo by Croaky on Saturday March 11, 2017 @11:50AM (#13846054)
+1 Netlify.

I've really liked it for https://blog.statusok.com and https://statusok.com

GitHub webhook deploy flow, one-click SSL, 301 redirects and other rewrite support, CDN seems pretty good.

Re:Moving from Wordpress to Hugo by itake on Saturday March 11, 2017 @03:32PM (#13847089)
-1 Netlify

I found the netlify was slower than github pages and surge.sh according to google's speed tests.

Netlify also wants complete access to your github account. You either need to make a separate account or give them access to all of your repos.

Re:Moving from Wordpress to Hugo by tyingq on Saturday March 11, 2017 @04:51PM (#13847457)
GitHub doesn't offer anything more granular than read/write all repos in their app permissions matrix.
Re:Moving from Wordpress to Hugo by itake on Thursday March 23, 2017 @01:09PM (#13941722)
I understand that, but that doesn't excuse the fact I have to give them complete access to my repos.
Re:Moving from Wordpress to Hugo by bpye on Saturday March 11, 2017 @12:23PM (#13846200)
I've always disliked the idea of using Github/Gitlab pages as it stops you serving over HTTPS. You can put Cloudflare in front to do HTTPS, but I still dislike having a proxy MITM all traffic to my website.
[dead]
Re:Moving from Wordpress to Hugo by ploggingdev on Saturday March 11, 2017 @10:49PM (#13848835)
> Centralisation harms the web, the Cloudbleed event and the recent AWS outage are good reminders of the fragility of the centralised web.

Yes, but decentralization does not mean moving from one provider to another.

> Being a lazy niggard who wants to save $6 a month and 1h set-up is not a sound attitude for anybody in the long run.

It's not about being lazy or a "niggard" (I assume you mean a miser). My point was that it's overkill to use a VPS for a static site.

Also, avoid personal attacks.

Re:Moving from Wordpress to Hugo by sgallant on Saturday March 11, 2017 @12:33PM (#13846248)
Great post! I started using Hugo instead of WordPress in 2015 and haven't looked back. We grew tired of manually updating sites so we built a CMS (shameless plug). https://forestry.io/. We're going to be rolling out some interesting things in the coming months.
Re:Moving from Wordpress to Hugo by Dunedan on Saturday March 11, 2017 @07:40AM (#13845260)
While I'm a big fan of static site generators the reason for me not to use one for blogging is the trouble when you want to have comments without an additional third party service.
Re:Moving from Wordpress to Hugo by ue_ on Saturday March 11, 2017 @07:45AM (#13845274)
I very much dislike Javascript commenting, but you don't have to use a third party service if you host the comments yourself. Isso[0] for example can do this.

[0] https://posativ.org/isso/

Re:Moving from Wordpress to Hugo by sgallant on Saturday March 11, 2017 @12:23PM (#13846197)
If you use Jekyll, there's https://staticman.net/. An open-source solution for static comments.
Re:Moving from Wordpress to Hugo by CJefferson on Saturday March 11, 2017 @01:30PM (#13846494)
This requires i give some service push access to the repository holding my website. This seems to remove one of the major advantages of static websites -- no ability to hack into a dynamic webpage and corrupt my website.
Re:Moving from Wordpress to Hugo by laktek on Saturday March 11, 2017 @08:23AM (#13845345)
How much you would be willing to pay for a setup with built-in commenting?

(PS: I'm creating pragma.build, a web publishing platform with static page generation)

Re:Moving from Wordpress to Hugo by hashhar on Saturday March 11, 2017 @08:19AM (#13845330)
I too think that and that was one of the reasons I moved to Ghost. But I'm a broke and cheap student who doesn't pay for a VPS or hosting provider currently so I have temporarily (until I join a job in July) moved back to a simple Jekyll website with Discourse for comments.
Re:Moving from Wordpress to Hugo by kasbah on Saturday March 11, 2017 @08:27AM (#13845354)
I am confused, I thought for Ghost you have to set up comments yourself as well: https://www.ghostforbeginners.com/how-to-enable-comments-on-...

I have been running Ghost for free on OpenShift but haven't set up comments. I would recommend it but I don't think OpenShift are taking on new accounts for the v2 platform where Ghost is available -- they are transitioning to "next gen" and I haven't checked if they have Ghost on that.

Re:Moving from Wordpress to Hugo by hashhar on Saturday March 11, 2017 @01:29PM (#13846485)
Oh, sorry for being unclear. Being a dynamic website, I rolled my own simple comment system (mainly to learn, I eventually replaced it with Discourse).

Thanks for recommending OpenShift. I'll be getting my first paycheck in July and will move to a hosting provider that provides best value.

Re:Moving from Wordpress to Hugo by kasbah on Saturday March 11, 2017 @02:14PM (#13846691)
Ah I see, has Discourse improved as a comment system or is it still quite hard to set up?

I was mainly recommending OpenShift because it's free but I don't know if the setup I have now is still available.

Re:Moving from Wordpress to Hugo by djKianoosh on Saturday March 11, 2017 @10:29AM (#13845702)
people still make the mistake of reading internet comments?

-takes out tongue from cheek ;)