Skip to content

Post: SvelteKit needs better Markdown support #871

Description

@maiertech
  • mdsvex layouts can access the frontmatter.
  • To access the frontmatter in a SvelteKit layout, you have to get it from somewhere.
  • Example of how to read out metadata of a single post: https://joyofcode.xyz/sveltekit-markdown-blog#rendering-a-single-post. This means you can't organize posts in routes.
  • Could the layout retrieve post metadata? How does it have to be invalidated?
  • With mdsvex layouts, accessing metadata is trivial. But it adds a second layout engine.
  • sv add is an improvement.
  • We are svelte check blind inside Mdsvex files. This bites me with every refactoring.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions