Skip to content

Add currentFrontmatter to $nav. #2659

Description

@mcourteaux

Is your feature request related to a problem? Please describe.

The $slidev.frontmatter is not set in a global-top, or global-bottom. Instead we are pointed to the $nav to obtain information about the current slide. However, that does give us access to the currentLayout which is useful, but I'd have liked to have more general access to other fields in the frontmatter of the current slide.

Describe the solution you'd like
Exposure nav.currentFrontmatter

Describe alternatives you've considered
Make $slidev.frontmatter be populated for a global-top.vue or global-bottom.vue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions