ocluf / justship

A svelte 5 and sveltekit saas boilerplate. Including database, authentication, email, analytics, and landing page components.
https://justship.today
MIT License
395 stars 29 forks source link

Blog #12

Open jasongitmail opened 1 month ago

jasongitmail commented 1 month ago

I have a similar private svelte template I created for my own projects, and wanted to suggest Hashnode as a headless blog backend, in case it helps. Like a Ghost but free and hosted.

Curious to hear what headless backend you use if not these, to maybe discover something new.

ocluf commented 1 month ago

Haven't really looked into the solutions for the blog component yet. I thought I would perhaps make it myself but Hashnode looks really nice!

jasongitmail commented 1 month ago

I use hashnode as headless CMS with the front end in svelte personally. Gives ideal performance bc SK's client side router can still work and keeping the front end in SK is also ideal for SEO bc it can live at /blog instead of a subdomain.

https://hashnode.com/enterprise?source=headless-page-redirect

ocluf commented 3 weeks ago

Actually after considering it I think I'm just going to write raw html for blogs and not use any framework or markdown converter at all.

It is actually quite a nice experience if you use the @tailwindcss/typography plugin and write the html in vscode which autocompletes the tags.

And it also makes is super easy if I want to do some sort of interactive element within my blog.

jasongitmail commented 3 weeks ago

That works too. 👍 Start simple + interactive svelte components could be useful for some people.

You give up a few things like image hosting, auto image resizing & optimization (but you can use svelte's enhanced:image), post scheduling, multi-user review workflow, etc. That's why I switched from a file-based system to a headless backend. I also render the HTML in a div, that uses classes from @tailwindcss/typography.

But both approaches are valid.

Korayem commented 5 days ago

@jasongitmail @ocluf I am eyeing https://contentlayer.dev/