-
The instructions aren't clear for me, and it seems no one is talking about sveltia-cms on the internet enough to gather knowledge on how to do things. On one hand, it suggests to install/follow instructions for Decap, but decap doesn't have a template for svelte. Even if it did, it then imports the js file from a cdn, not locally. Then there's the manual option that says
But the decap instructions still feel... incomplete ? I then thought about if it would be possible to use sveltekit, so some articles could require authentication (hooks and tighter integration with a main website), but then the "manual initialization" wouldn't apply with sveltekit. If someone have some time to guide me through how to actually set up sveltia, I would be very pleased :D it seems like a great piece of code :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I have created Sveltia CMS mainly for my client SvelteKit sites, so SvelteKit support is guaranteed. You don’t need to use the manual initialization method. Just use the normal installation method of My quick search finds a Decap + SvelteKit template, though I haven’t tried it yet. You can also sneak a peek at one of my client sites on a public repository, though it’s not open source. The key part is Later I’ll certainly provide a SvelteKit starter kit. |
Beta Was this translation helpful? Give feedback.
I have created Sveltia CMS mainly for my client SvelteKit sites, so SvelteKit support is guaranteed. You don’t need to use the manual initialization method. Just use the normal installation method of
index.html
with<script>
.My quick search finds a Decap + SvelteKit template, though I haven’t tried it yet.
You can also sneak a peek at one of my client sites on a public repository, though it’s not open source. The key part is
import.meta.glob
, which is actually a feature of Vite, not SvelteKit, that allows multiple entries to be read at once like this file.Later I’ll certainly provide a SvelteKit starter kit.