Welcome, this will guide you through this template and how to use it. This is a SvelteKit + MDsveX Personal website and a blog completely designed with Shadcn-Svelte , it has everything you need get started and you can fully customise it. repo link
it's got ton of features that you don't wanna miss out.
console.log("Hey there")
Inline
: In this section we'll dicsuss about how to setup quicky and get started.
To install, clone the repo using
install the node modules
and start editing the following files
$lib/config.ts
which has all the linksabout/about.md
to change the about page$lib/assets
for favicon and image$lib/components/site/hero.svelte
to change the home page$lib/projects.ts
to change your projects.let's have a look at $lib/config.ts
To ensure that your local images, located in the posts/[slug]
folder, can be converted to GitHub URLs, it's essential to include your githubConfig
in the config.ts
file. This is particularly useful when you want to include images in your blog posts and prefer to store them in the same folder as your post for better organization.
However, there's a caveat – assets in other than public folder (static), won't be processed by Vite. As a result, these images won't have a definite URL. To obtain the URL, you'll need to incorporate your githubConfig
, which transforms your local images into GitHub raw URL format. This ensures that when you deploy your application, the images will correctly point to your GitHub repository.
Alternatively, you can place your images directly in the static folder and access them using /
which points to static folder. example: /image.png
and you also get Vite Image Optimisation.
Always use a CDN for better performance.
see the next part on How to write blogs