slidevjs / slidev

Presentation Slides for Developers
https://sli.dev
MIT License
31.94k stars 1.26k forks source link

Frontmatter first slide not working #1689

Closed louwers closed 2 weeks ago

louwers commented 2 weeks ago

Describe the bug I am trying to use frontmatter with the first slide. But it doesn't work the way I expect

To Reproduce Steps to reproduce the behavior:

  1. Add frontmatter before the first slide like in the documentation https://sli.dev/guide/syntax#frontmatter-layouts
  2. Instead of the frontmatter applying, I see the contents of the frontmatter on the slide:
image

Desktop (please complete the following information):

louwers commented 2 weeks ago

Similarly

```yaml
# The first yaml block will be treated as the frontmatter of that slide
layout: full

Test



Results in:

<img width="950" alt="image" src="https://github.com/slidevjs/slidev/assets/649392/df535666-c043-4ae7-a95f-fb0262065b43">
louwers commented 2 weeks ago

I overlooked this:

You can configure Slidev in the frontmatter of your first slide