-
Notifications
You must be signed in to change notification settings - Fork 1
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
[object Promise] instead of link #3
Comments
I think the PR here has something to do with it In Nunjucks, asynchronous and synchronous shortcodes are added in different ways. To solve this, change it so that the following shortcode can be added only for "Nunjucks". eleventyConfig.addNunjucksAsyncShortcode('eleventyGoogleFonts', async (value) => {
return await createInlineCss(value)
}) |
I ran into this as well. You can workaround this issue by downgrading to the previous release, like this:
|
I have to say, it's been a while since I last used eleventy, but as @dc7290 pointed out, we would need a special case for Nunjucks. I would suggest having both I'd say we could, roughly, have something like this: let eleventyGoogleFontsShortcode = async (value) => {
return await createInlineCss(value);
}
eleventyConfig.addShortcode('eleventyGoogleFonts', eleventyGoogleFontsShortcode);
eleventyConfig.addNunjucksAsyncShortcode('eleventyGoogleFonts', eleventyGoogleFontsShortcode); This should add proper support for all engines, with the exception of Handlebars, which does not support Any thoughts? |
@takanorip this is still an open problem - any chance this will ever get addressed? for now, I'm reverting to |
Hi, I've tried plugin but it returns [object Promise] instead of link into html. Any idea why?
Did I miss something in documentation?
The text was updated successfully, but these errors were encountered: