stackblitz / tutorialkit

TutorialKit by StackBlitz - Create interactive tutorials powered by the WebContainer API
https://tutorialkit.dev
MIT License
503 stars 48 forks source link

feat(astro): override components to support `HeadTags` #375

Closed eric-burel closed 1 month ago

eric-burel commented 1 month ago

I was investigating setting up a sitemap, using @astrojs/sitemap. For a proper setup, you also want to add a link tag in the page head to tell scrapers the URL to your sitemap (in addition to robot.txt). We could do this in the framework default setup, but that would mean setting up sitemap as an integration there and I'd rather give end users more control on the configuration.

So I went down the rabbit hole and implemented a replaceable HeadTags component.

I've tried to make the API as future proof as possible using slots.

stackblitz[bot] commented 1 month ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.