655 B
655 B
name, description
| name | description |
|---|---|
| frontmatter-merging | Priority rules when importing slides with conflicting frontmatter |
Frontmatter Merging
When importing slides, frontmatter from main entry takes priority.
Example
Main file (slides.md):
---
src: ./cover.md
background: https://sli.dev/bar.png
class: text-center
---
Imported file (cover.md):
---
layout: cover
background: https://sli.dev/foo.png
---
# Cover
Cover Page
Result
---
layout: cover
background: https://sli.dev/bar.png # main entry wins
class: text-center
---
# Cover
Cover Page
Priority Rule
Main entry > Imported file for duplicate keys.