Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend FragmentPlugin to handle page metadata #359

Open
lilyvc opened this issue May 19, 2023 · 0 comments
Open

Extend FragmentPlugin to handle page metadata #359

lilyvc opened this issue May 19, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@lilyvc
Copy link
Contributor

lilyvc commented May 19, 2023

Currently if you use the FragmentPlugin and the fragment page has references to metadata, such as {meta.data.title} it will show the host page's title. This should be changed so that it references the metadata from the fragment page. Currently we would just advise that fragments do not contain such references.

Example:

If you edit have a host page referencing a content-fragment.mdx page that looks like:

---
title: Content Fragment
---
#### {meta.title}

You should see the title of that section on the host page be Content Fragment but what you get is the host page's title.

One for a follow up

Originally posted by @DavieReid in #354 (comment)

@lilyvc lilyvc added the enhancement New feature or request label May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant