News for hackers. Stuff that matters.
Re:KDE.org migrated to Hugo by nikodunk on Friday October 30, 2020 @04:08PM (#24946376)
Funny, just spent this morning working on a Hugo project for the first time in a while, because I just discovered https://netlifycms.org.

I love Hugo and how fast it generates my business site (https://sunboxlabs.com), but having just hired a first (non-technical) writer I had a classic dilemma: either teach them the Hugo command line/markdown or switch to something like Forestry/ButterCMS/Wordpress for a non-technical CMS.

Then I found https://NetlifyCMS.org: You just add an /static/admin/ folder with two files in it and BOOM: non-technical users can create and edit posts with a Wordpress like dashboard (saves as Markdown to Git still). Strongly recommended.

Re:KDE.org migrated to Hugo by seanwilson on Friday October 30, 2020 @04:43PM (#24946713)
What's your workflow for letting your writer preview the generated styled pages?
Re:KDE.org migrated to Hugo by nikodunk on Friday October 30, 2020 @07:58PM (#24947947)
Great question. We basically set every article as a draft, and because they can write in WYSIWIG writer now (no markdown) and the netlifycms admin dashboard allows them to see a fully-rendered preview that gets us 80% of the way.

At that point (once we've checked the links and typos, etc) we flip the draft boolean to false and check the article looks as expected on production.

Not perfect – we'd probably have a staging server if we were bigger – but we're still small :)

Re:KDE.org migrated to Hugo by seanwilson on Friday October 30, 2020 @11:24PM (#24948916)
Thanks, I was just thinking about how this works vs something like WordPress where you can preview how the actual edited page will look before you publish. Netlify CMS lets you view the Markdown, but the non-tech editor would have to understand there's a build delay to the page going live and the final page might need reviewing.

Nothing's perfect though, I just find most static site stories don't address the above so any thoughts are appreciated!

Re:KDE.org migrated to Hugo by chrisdalke on Saturday October 31, 2020 @01:52AM (#24949419)
If I remember correctly you can have Netlify CMS commit changes to a branch that is auto-deployed, so you can see the fully rendered preview.
Re:KDE.org migrated to Hugo by seanwilson on Saturday October 31, 2020 @03:20AM (#24949670)
Yep, but how do you explain that to a non-tech person (e.g. URL to visit, how long to wait for the build to finish)?
Re:KDE.org migrated to Hugo by trystero on Saturday October 31, 2020 @01:14PM (#24953211)
It's all reflected in the UI, with a "View Live" button that appears when the build is done. It's quite user friendly. I recommend you test it yourself: https://cms-demo.netlify.com/