My personal website shivan.xyz
README.MD

Build

This is source code for my website.

SvelteKit #

This uses SvelteKit, as a static site generator.

Hosting #

This is hosted using Cloudflare Pages.

Creating a New Post #

This can be done with the following command:

npm run new -- new-post

This will create a new directory /content/posts/new-posts and pre-filled index.md file.

Special Components in Markdown #

<YouTube /> - YouTube videos #

For displaying, playable embeded YouTube videos. Inspired by hugo.

<script>
	import YouTube from "YouTube"
</script>

<YouTube id="<youtube-id>" />

<Figure /> - Images #

<script>
	import Figure from "Figure"
	import image from "./image.png" // Ficticious image imported
</script>

<Figure src={image} alt="Important alt to describe image" caption="Caption for image" />