Access eleventy configuration in shortcodes #4113
JbIPS
started this conversation in
Enhancement Queue
Replies: 1 comment
-
|
I think there is a lot of pieces to this request but just to loop the pathprefix point together: The new HTML |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Some shortcodes would greatly benefits from accessing eleventy configuration, like
eleventy-imgwithpathprefix.In the same way we could access
page.datain shortcodes, exposing athis.configcould help tweak shortcode depending on the global configuration of Eleventy.At the moment, this can be achieved by bypassing CLI configuration with
envvariables and settings everything in the JS. Providing a clean way to access config would be more straightforward.Workaround example:
Beta Was this translation helpful? Give feedback.
All reactions