This is an example of the same approach as my Gatsby YAML Starter but this time using SvelteKit which in my opinion is a lot faster than Gatsby. Obviously it is missing the wonderful Gatsby Image optimisation, but I can sacrifice it for the overall speed and convert my images using node or some other solution.
This is how you create inline content with images converted by GatsbyImage Plugin and internal Links loaded from yaml file...
Here you can see a different variety of sections mixed together. You can define your own sections and reuse them in any page or post...