3 ms·
I've thought of something similar! A git-based flow for a friend's static portfolio site, where he can make text edits and upload images, and the site builds th
by wonger_ 3y ago
I've thought of something similar! A git-based flow for a friend's static portfolio site, where he can make text edits and upload images, and the site builds that content with HTML templates.
Not sure how the GitHub markdown editor would feel for the user. It might be really great, even for uploading images.
I was imagining a static admin page, WYSIWYG, that makes git pushes on submit. These were the headless CMSs that seem to be able to accomplish that:
https://www.siteleaf.com/ https://www.siteleaf.com/
https://decapcms.org/ https://decapcms.org/
And not git based, but similar idea of static content editing: https://editable.website/ https://editable.website/
And this is what the admin edit page usually looks like: https://quick-edit-demo.vercel.app/admin/index.html#/collections/edit/post/~/anotherPost https://quick-edit-demo.vercel.app/admin/index.html#/collect...
But it was taking a bit of work to configure.
- INTPenis 3y agoGithub.com and Gitlab.com have after all put a lot of effort into their WYSIWYG editors, but they're not very useful for image uploads. That part should probably be handled separately just to avoid slowing down the git repo with huge binary files. For example upload an image to S3, note the path, enter it into a markdown syntax image url. There are many ways to skin that cat, depending on the technical skill level of your client. They could even e-mail the images to a script, or message them to a bot on an IM service, that then returns the URL for them to use in Markdown.