svelte-blog

Svelte Blog

A really bare-bones blog template written in SvelteKit, using MDsveX.

Svelte Blog

Live version: https://sveltekit-blog.netlify.app

A really bare-bones blog template written in SvelteKit, using MDsveX.


Developing

Prerequisites

Install dependencies

npm i

Scripts

npm run dev

Runs a development server on http://localhost:3000.

npm run build

Builds the project into the build folder.

npm run preview

Runs the built project on http://localhost:3000.

Project structure

/src/routes/posts/ --> The folder where your posts are located.
All other directories should be in the SvelteKit docs.

Post metadata

  • "slug" is the link your post will be on ex: https://example.com/blog/my-first-post.

  • "title", "summary" and "author" should be self explanatory.

  • "date" is the date your post was published in. Nearly all date formats work.

  • "published" is a boolean. If true the post will display otherwise it will stay unpublished and not accessible anywhere outside the source code.


License

This project is licensed under the Unlicense aka public domain.

Top categories

Loading Svelte Themes