This is source code for my blog.
This uses SvelteKit, as a static site generator.
This is hosted using Cloudflare Pages.
This can be done with the following command:
npm run new -- new-postThis will create a new directory /content/posts/new-posts and pre-filled index.md file.
For displaying, playable embeded YouTube videos. Inspired by hugo.
<script>
import YouTube from "YouTube"
</script>
<YouTube id="<youtube-id>" /><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" />