News for hackers. Stuff that matters.
Re:A SvelteKit template for building CMS-free editable websites by nonethewiser on Wednesday April 05, 2023 @12:39PM (#35456884)
I edit the website and then refresh and changes don’t persist. Obviously they don’t want people editing their production website, but is it otherwise supposed to persist? If not, what’s the point?

For this reason I find the demo a bit confusing.

Re:A SvelteKit template for building CMS-free editable websites by CharlesW on Wednesday April 05, 2023 @12:44PM (#35456950)
> Obviously they don’t want people editing their production website, but is it otherwise supposed to persist?

The repo notes that persistence requires editors to in with the (shared?) admin user and password.

Although the pitch is "CMS-free", this is a Postgres- and S3-backed content management system.

The in-place editing is extremely cool.

Re:A SvelteKit template for building CMS-free editable websites by _mql on Wednesday April 05, 2023 @04:55PM (#35460247)
"CMS-free" as in "does not depend on additional software to manage content". Postgres and S3 through MinIO are my preferred choices, but you can change that to anything you'd like to use instead.

Glad you like the in-place editing. I'm also for the first time happy with the experience. You can press CMD+E for editing and CMD+S saving, and there's no layout shift, so it's really convenient for quick edits. :)

Re:A SvelteKit template for building CMS-free editable websites by CharlesW on Wednesday April 05, 2023 @05:10PM (#35460429)
> "CMS-free" as in "does not depend on additional software to manage content". Postgres and S3 through MinIO are my preferred choices, but you can change that to anything you'd like to use instead.

Cool! Postgres and an S3-compatible object store area are both listed as requirements, so you may want to update that.

So by "does not depend on additional software", does that means I can just use the filesystem?

Re:A SvelteKit template for building CMS-free editable websites by _mql on Thursday April 06, 2023 @07:05AM (#35466735)
You could just use the filesystem indeed.
Re:A SvelteKit template for building CMS-free editable websites by malborodog on Thursday April 06, 2023 @08:05AM (#35467217)
why not just have a tonne of html files on disk?? I'm confused at why this requires a sophisticated backend.
Re:A SvelteKit template for building CMS-free editable websites by baobabKoodaa on Wednesday April 05, 2023 @05:36PM (#35460704)
Why is Postgres needed here? Couldn't everything be saved in static files published in S3 or any other CDN?