This templates used SvelteKit, Tailwind, and Skeleton preconfigured along with a curated template created and implemented by the the creators of Skeleton.
Find installation instructions within the FAQ here: https://skeleton.dev/docs/sponsorship#premium-templates
A custom theme is bundled with this template and enabled by default. This can be found in theme.ts
, in the root of your project. Learn more about customizing themes here.
Several static data files have been provided in /src/lib/data
to populate content on your site. This includes:
authors.ts
- the full list of avaiable authors and their info.categories.ts
- the full list of available categories.social.ts
- the list of social icons and urls.
All rountes can be found in the /src/routes
directory. This template includes:
/
- the homepage of the blog./about
- a page to describe the purpose of the blog./posts/[slug]
- the unique post article page./categories/[slug]
- a filtered list of posts by category./api/posts
- SvelteKit server endpoints for fetching post data./sandbox
- a hidden sandbox page for testing theme styles.
The blog uses mdsvex, meaning each blog page is created using Markdown. If you're looking for a deeper understanding of how this operates, we recommend this guide by Joy of Code.
To create a new post, simply add a new markdown file within /src/posts/{unique-file-name}.md
. See the svelte-and-markdown.md
post for example of markdown styling.
View /src/lib/types.ts
and reference the Post
type for a full list of frontmatter options per post. New options may be added, just make sure to update the type and apply a default value to each of your previous posts.
A hidden sandbox page has been provided at /sandbox
. This allows you to quickly preview and test various Skeleton elements and components, including: typography, buttons, the color palette, and more. This route can be deleted at your own discretion.
- Sticky Header: if you wish to make the app header sticky, open
/src/routes/+layout.svelte
and setstickyHeader
totrue
.
- Font Awesome (https://fontawesome.com/) - a library of SVG icons.
- Unsplash (https://unsplash.com/) - all images are provided by Unsplash.
- mdsvex (https://mdsvex.pngwn.io/) - provides markdown parsing for Svelte.
- Typography Plugin (https://tailwindcss.com/docs/typography-plugin) - style content you do not control directly.
This template is served under the terms of the Personal License.