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

Using the eleventy-navigation plugin with WebC #55

Open
edmelly opened this issue Oct 10, 2024 · 0 comments
Open

Using the eleventy-navigation plugin with WebC #55

edmelly opened this issue Oct 10, 2024 · 0 comments

Comments

@edmelly
Copy link

edmelly commented Oct 10, 2024

If I use this js frontmatter in a .md or .njk file, the navigation item works as expected (i.e. url and key are /one and One, respectively):

---js
const permalink = "/one/";

const eleventyNavigation = {
  key: "One",
}
---

Similarly, standard frontmatter works:

---
permalink: "/one/"
eleventyNavigation: {
  key: One,
}
---

But the same thing in a .webc file doesn't work. key is found, but url is undefined.

I've created a fork of the 11ty WebC base, showing the issue. Am I missing something/do I need to treat WebC differently?

It may be a separate issue, but InputPathToUrlTransformPlugin also fails for any WebC templates.

@edmelly edmelly changed the title using navigation plugin with WebC Using the eleventy-navigation plugin with WebC Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant