-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Dynamic permalinks and WebC #27
Comments
Some progress on "permalink": "<div webc:nokeep @text='`subdir/${slugify(title)}/index.html`'></div>" |
Yeahhhhhh… this is a hefty bug—sorry. But easily fixable. I just need to map the dynamic attribute JavaScript parsing code to the Eleventy Custom template permalink stuff: https://www.11ty.dev/docs/languages/custom/#compileoptions.permalink-to-override-permalink-compilation |
This will ship with Eleventy WebC 0.7.0 |
Glad to see my workaround for #36 is no longer needed 😄 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using liquid I had a
news.11tydata.json
containing:When using WebC I should instead be using WebC for that? Feels like a challenge? I would preferably use eg. liquid for my permalinks and only WebC for my actual HTML
This plugin could provide a custom behavior by setting
permalink
incompilerOptions
to a function orfalse
:eleventy-plugin-webc/src/eleventyWebcTemplate.js
Lines 84 to 90 in f7bc146
I think it should done of:
The text was updated successfully, but these errors were encountered: