Something went wrong. Try again.
My personal website shivan.xyz
Something went wrong. Try again.
Files
- Svelte 68%
- TypeScript 21%
- CSS 5%
- JavaScript 4%
- HTML 2%
README.MD
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" />