News for hackers. Stuff that matters.
Re:Why I do not like Hugo by aidenn0 on Sunday August 13, 2017 @07:32PM (#15005597)
Slightly OT, but Is Wordpress still the only real solution for a professional looking blog for those that want a wysiwyg editor? My wife is starting a blog and wants me to set it up for her.
Re:Why I do not like Hugo by mjmein on Sunday August 13, 2017 @11:20PM (#15006413)
My go-to replacement for Wordpress is Grav. It is a flat file cms, which means that it doesn't require any database. All posts are stored in markdown files with yaml front matter. However there is also an admin GUI frontend for non technical users.

Not using a database makes it really simple to install or migrate servers (just copy the directory).

On the other hand, being a dynamic PHP app means there is no explicit build step needed, and you can build any kind of plugin that you need.

https://getgrav.org/

Re:Why I do not like Hugo by laktek on Sunday August 13, 2017 @08:30PM (#15005865)
I'm building something that you might find interesting. Pragma (https://pragma.build), comes with a browser based Medium style editor and static page publishing by default.

I've been running an invite only private beta for a few months now, and most of our early adopters were tech-savvy people who were asked by their friends/family to build a site. They love it because it's less setup and maintenance burden for them. I also plan to open source the project in the coming weeks, so you'd have greater flexibility of hosting it anywhere.

If you like to give a try, request an invite on site (pragma.build) or send a DM (@PragmaApp) on Twitter.

Re:Why I do not like Hugo by fiatjaf on Sunday August 13, 2017 @09:43PM (#15006145)
I've asked for an invite years ago.
Re:Why I do not like Hugo by laktek on Sunday August 13, 2017 @09:53PM (#15006171)
Oops...Resent the invite.
Re:Why I do not like Hugo by fiatjaf on Sunday August 13, 2017 @09:54PM (#15006174)
Oops, I was invited already? I've probably messed things up and deleted the email then. Sorry.
Re:Why I do not like Hugo by mattkevan on Sunday August 13, 2017 @07:49PM (#15005661)
A static site generator like Jekyll or Hugo paired with a CMS-as-a-service like Forestry or Contentful makes for a fast, no maintenance Wordpress alternative.

And with a host like Surge or Netlify you can run an entire site for just the cost of a domain name.

Re:Why I do not like Hugo by jonathonf on Sunday August 13, 2017 @07:56PM (#15005693)
That doesn't really answer the question - no static site generator {that I know of} is WYSIWYG in the same way as Wordpress. Yes, you can train people how to use a generator, but compared to a dynamic CMS they have a _much_ steeper learning curve {based on my experience training people about web publishing}.

The closest I've seen is using Sandstorm with their static Wordpress site publishing but it's still nowhere near as smooth as plain Wordpress.

(Edit: let's add some qualification because downvoting)

Re:Why I do not like Hugo by kot-behemoth on Sunday August 13, 2017 @10:57PM (#15006351)
Lektor (https://www.getlektor.com) is a static site generator with a simple admin interface (with WYSIWYG editor for markdown) which can be run locally. Publishing can also be done via a button in the UI. For even more user-friendliness, the site can be stored in Dropbox, so the user doesn't even need to know git.
Re:Why I do not like Hugo by mattkevan on Monday August 14, 2017 @12:06AM (#15006523)
The static generator is completely hidden to the end user. They log in, click add new post, add some text, style it in Markdown or HTML, upload a few images, add a few tags and click publish. Forestry commits the changes and Netlify runs a build. All the user sees of this is that their new post is now published.

When I first started using static sites I would have agreed with you: there's no way I'd hand a normal user a markdown editor and a git repo and expect them to get on with it. But these new services do, in my opinion, solve the experience problem.

However Wordpress is really good if you want to leverage the module ecosystem and do more complex stuff further down the line.

Having used Wordpress for years I get excited about static sites' speed, simplicity and lack of constant security updates but it's not a one size fits all situation.

Re:Why I do not like Hugo by indigodaddy on Sunday August 13, 2017 @07:57PM (#15005700)
Sandstorm also has a static producing Ghost instance, which is pretty decent, yet very dated in it's version.
Re:Why I do not like Hugo by perryprog on Sunday August 13, 2017 @08:23PM (#15005829)
What's the difference of Forestry and Contentful? I've heard good things about Contentful, but I haven't heard of Forestry.
Re:Why I do not like Hugo by sgallant on Sunday August 13, 2017 @08:34PM (#15005887)
Co-founder of https://forestry.io here.

Forestry.io is a Git-based CMS that commits content changes to your repo (and optionally builds/deploys your site). Contentful is an API-based CMS, that stores your content and requires you to query their API during/after build time.

Re:Why I do not like Hugo by perryprog on Monday August 14, 2017 @10:36AM (#15008840)
Oh, ok that makes sense.

So you would use Forestry if you're hosting static HTML from CMS, and Contentful for when you need an API for the CMS.

(disclamer: I've never used CMS before so I don't really know how it works)

Re:Why I do not like Hugo by angeloashmore on Sunday August 13, 2017 @08:56PM (#15005983)
Is your service coupled with Hugo?
Re:Why I do not like Hugo by sgallant on Sunday August 13, 2017 @09:08PM (#15006031)
Not sure what you mean by "coupled", but we support both Hugo and Jekyll sites.
Re:Why I do not like Hugo by angeloashmore on Sunday August 13, 2017 @11:59PM (#15006503)
Ah, sorry, thought it was something more like Contentful that provides an API.
Re:Why I do not like Hugo by jeremya on Sunday August 13, 2017 @08:29PM (#15005858)
I've not used either, but Forestry seems like a CMS-to-static-pages tool while Contentful is a CMS-to-API tool.
Re:Why I do not like Hugo by indigodaddy on Sunday August 13, 2017 @07:56PM (#15005692)
And Netlify also offers Netlify CMS, which can accomplish the web-based composing urge.
Re:Why I do not like Hugo by sturmen on Sunday August 13, 2017 @07:53PM (#15005677)
Squarespace is wonderful from a WYSIWYG standpoint, and doesn't require immersing yourself in the WordPress ecosystem.
Re:Why I do not like Hugo by wishinghand on Monday August 14, 2017 @01:12AM (#15006685)
Kirby CMS is the answer if you can install a plugin for wysiwyg and deal with Disqus for comments. There are Kirby plugins for comments that get saved locally, but I haven't experimented with them yet.
Re:Why I do not like Hugo by jbergstroem on Sunday August 13, 2017 @10:53PM (#15006343)
I'm happy with the abstraction that https://www.contentful.com/ provides; be it a personal static site or more complex integrations which involves multiple content feeds. You get to define a content model and then just create away [within the limits of said model]. Their pricing is fair too (read: free for most).

Edit: Downside(s) would include that $webmaster has to figure out whether to render content at browser or though "ssr".

Re:Why I do not like Hugo by fiatjaf on Sunday August 13, 2017 @09:47PM (#15006154)
I've been experimenting with hosting the site content on GitHub, creating and editing posts with https://github.com/fiatjaf/coisas and auto-publishing with https://docs.travis-ci.com/user/deployment/pages/
Re:Why I do not like Hugo by e12e on Sunday August 13, 2017 @09:16PM (#15006056)
WordPress hosted on wordpress.com without any 3rd party plugins is pretty solid. But ghost might be a decent alternative. If you want to self-host, you might want to consider cmsmadesimple.org as an alternative to wordpress (it's also php, but as the name implies it's simple - it's more of a cms than wordpress - but in a good way - it's more sensible if you want to customise it).
Re:Why I do not like Hugo by codegeek on Sunday August 13, 2017 @07:52PM (#15005674)
WordPress is probably not the only one but the issue with others is that at some point, you hit a wall with them. It is really hard to beat the ease of setting up WordPress (tons of 1 click hosts), ease of extending functionality (need social share? There is a plugin for that). If you need a blog for a non technical person, you just cannot beat WordPress. The codebase may be ugly but who cares.
Re:Why I do not like Hugo by chipotle_coyote on Sunday August 13, 2017 @09:32PM (#15006108)
Well, a reason to care about the ugly codebase is that unless you're 100% satisfied with somebody else's theme out of the box, you're going to be tweaking it in a child theme (or a full fork), and wow it's ugly.

But having said that, the ecosystem of WordPress is really hard to beat. The original linked post complains that WordPress won't do Markdown without a plugin, but y'know, so what? Jetpack gives me Markdown and great site statistics without Google Analytics. Out of the box, I get a reasonably solid taxonomy system with per-category RSS feeds, threaded comments with Gravatar support, and an API that lets me publish drafts directly from offline clients (including Ulysses, the writing app I was already using). More plugins give me Akismet anti-spam, microformats, webmentions, and per-post crossposting to Tumblr and Dreamwidth. (And Facebook, Medium, and a dozen other systems, if I chose to use them.) There are a lot of things I don't love about WordPress, but the reality is that it's damn hard to beat its user experience.

I'd love it if something else stepped up to be a modern WordPress, but Jekyll, Hugo, et. al. just aren't it. (They're terrific at some things--I maintain a different site with Lektor, using it for things that WordPress wouldn't actually be very good at--but it's not a blog.) Ghost is the closest attempt I'm aware of, but between their launch and their recent 1.0 release, they refocused on being a platform for "building and running a modern online publication. I can't help but feel there's still a real opportunity out there for "modern WordPress competitor," although I don't know if it's a market opportunity--which is, one suspects, why it remains unfilled.

Re:Why I do not like Hugo by zener79 on Wednesday August 23, 2017 @10:39AM (#15081841)
Hi guys, we just developed a SaaS (https://www.hardypress.com) to have the best of both worlds (static site + wordpress), but fully automated and hosted. We also seamlessly support Contact Form 7, and we take care of scraping your website’s pages and augment the search box to provide instant suggestions so, for most websites, everything will work just fine, even if the site is completely static. If you want to give a try, I would be happy to hear some feedbacks from you :-)
Re:Why I do not like Hugo by supremesaboteur on Sunday August 13, 2017 @11:59PM (#15006505)
> The codebase may be ugly but who cares

Code quality matters indirectly here. Wordpress is known for it's massive number of security flaws. If you don't watch for new versions and update regularly ( and who has time for that ? ) consider yourself hacked

Re:Why I do not like Hugo by indigodaddy on Sunday August 13, 2017 @07:54PM (#15005686)
Check out Publii. Desktop app for generating static sites/blogs for Mac/Win with some very attractive themes.
Re:Why I do not like Hugo by msh on Monday August 14, 2017 @12:49AM (#15006618)
Ghost is the main competitor to work, comes as both hosted and self hosted.
Re:Why I do not like Hugo by nickthemagicman on Sunday August 13, 2017 @08:08PM (#15005751)
The problem with static sites is that you have to regenerate the site each time you make an update or new post... Wordpress just allows you to update it from the admin panel.
Re:Why I do not like Hugo by deburo on Sunday August 13, 2017 @08:36PM (#15005894)
Depends on what youre using to host the html files, but you can probably deploy in two commands.

1. generate your files

2. copy these files to your host

Put these in a script, and your workflow becomes: update your content, then run your script.

Re:Why I do not like Hugo by mark212 on Sunday August 13, 2017 @08:37PM (#15005899)
My experience with Hugo through v0.17 was that it takes ~1ms per post to generate. IIRc that was one of the major reasons why the author wrote, vastly increase the speed of regenerating the site.
Re:Why I do not like Hugo by nickthemagicman on Sunday August 13, 2017 @09:24PM (#15006087)
Right. But I can update my Wordpress site from my phone in China without a laptop running Hugo...
Re:Why I do not like Hugo by mcbits on Sunday August 13, 2017 @10:41PM (#15006303)
Maybe things are getting better these days (?), but at various points throughout its history, anyone could update your WordPress site from their phone in China.
Re:Why I do not like Hugo by veidr on Sunday August 13, 2017 @10:47PM (#15006324)
Right, and that's a truly killer feature if you happen to need it.

Hugo doesn't address that problem at all, nor do Jekyll, which I currently use, and the other similar tools I've looked at.

However, the missing step there (of rendering the static site and publishing it) seems well suited to being done "in the cloud" then on the client device where the posting/editing/typo.

If you have a machine or VM on the Internet to use, this is not difficult to set up for yourself (any computer-proficient user with a little time can do it).

But doing that is also nowhere near as trivial as WordPress makes it (any person at all can do it).

Re:Why I do not like Hugo by detaro on Sunday August 13, 2017 @10:57PM (#15006354)
That seems like exactly the gap Netlify wants to fill with their Netlify CMS (and a bunch of other options, depending on your exact needs).
Re:Why I do not like Hugo by veidr on Sunday August 13, 2017 @11:29PM (#15006432)
Interesting; thanks. I just signed up for forestry.io (which I also learned of in this HN thread), I will check out Netlify also.
Re:Why I do not like Hugo by the_stc on Sunday August 13, 2017 @11:17PM (#15006406)
Some hosts like Gitlab Pages or Netlify will run hugo for you. So you can use an online git editor, save, and it'll deploy automatically.

Not Wordpress wysiwyg but still pretty nice.

Re:Why I do not like Hugo by deburo on Sunday August 13, 2017 @08:33PM (#15005875)
TryGhost. It's still limited in features, but it is good for simple blogs.