This repository demonstrates how a blog with SvelteKit can be built, without using any markdown or extra packages.
This is a repository that demonstrates how to build a blog using SvelteKit, without the need for markdown or extra packages. The blog posts are created as SvelteKit pages, each residing within its own route. Metadata for each post is exported from the context script tag. The repository also showcases how to list all posts on a page by using Vite's import.meta.glob function to get a list of all pages in the post folder, importing the page components, extracting their props, and sorting the posts by date.
This repository demonstrates how to create a blog using SvelteKit without the need for markdown or extra packages. It showcases the ability to create each blog post as a SvelteKit page and export metadata from the context script tag. The repository also provides a method to list all posts on a page by utilizing Vite's import.meta.glob function and sorting the posts by date. With its flexibility and simplicity, this approach offers a straightforward solution for building a blog with SvelteKit.
Svelte is a modern front-end framework that compiles your code at build time, resulting in smaller and faster applications. It uses a reactive approach to update the DOM, allowing for high performance and a smoother user experience.
Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects
TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.