3 ms·
Good work - bonus points for having it work with JS disabled - a surprising number of blogs need JS to even render for some reason. A while ago was facing a si
by Tade0 7y ago
Good work - bonus points for having it work with JS disabled - a surprising number of blogs need JS to even render for some reason.
A while ago was facing a similar dilemma, so I went with this:
https://sapper.svelte.dev/ https://sapper.svelte.dev/
Plus a one-step deploy process made in Ansible by a friend of mine.
My take is that while Sapper isn't exactly production-ready, it's a otherwise competent static-site generator.
I write my posts in markdown and the system adds styling and modifications like target=_blank for links in a consistent manner.
Best thing about it is that I managed to use the experience from building my blog to help a friend who's an artist to set up his webcomic - also a static site.
The friend in question knows how to use FTP but that's about the extent of his technical skills, so the process involves him modifying a JSON file by adding an object with the comic title, flavour text and of course image URL to an array, running the generator and uploading the result.
The landscape of systems for this use case is pretty horrible, so this approach proved to be more pragmatic.
- gitgud 7y agoDoes sapper work without JS too? I thought svelte was a JS library?
- Tade0 7y agoSapper's[0] CLI has an "export" command which generates a static site with optional JS for better navigation. Of course it works only if the backend side is simple and predictable, but nevertheless it does the job. [0] SSR framework based on Svelte.