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

Change global settings in front matter #146

Open
xplosionmind opened this issue May 2, 2022 · 1 comment
Open

Change global settings in front matter #146

xplosionmind opened this issue May 2, 2022 · 1 comment
Labels

Comments

@xplosionmind
Copy link

I would like to change the settings I set in .eleventyconfig from the front matter of one specific page.

Example

.eleventyconfig:

…
  embedClass: 'my-alternate-classname'
…

front matter:

---
embedYoutube:
 embedClass: 'my-alternate-classnameeeeeee'
---
@gfscott gfscott transferred this issue from gfscott/eleventy-plugin-youtube-embed Feb 5, 2023
@gfscott gfscott added the youtube label Feb 5, 2023
@gfscott
Copy link
Owner

gfscott commented Mar 9, 2023

Needs further investigation. Eleventy 2.0 opened access to the page variable for transforms:
https://www.11ty.dev/docs/config/#transforms

However, it doesn't provide access to the page frontmatter. This may be something we can request upstream, or it may require a different approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants