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

Support additional context for presets #21

Open
nhoizey opened this issue Mar 31, 2020 · 0 comments
Open

Support additional context for presets #21

nhoizey opened this issue Mar 31, 2020 · 0 comments

Comments

@nhoizey
Copy link
Owner

nhoizey commented Mar 31, 2020

For example, the same content with images can be included in the main area of the content's individual page, in a thinner column in another page, etc.

Presets could be specialized with a context:

  • preset-name for default behaviour of the image
  • preset-name:context-name for specific behaviour of the same image in a specific context

preset-name is attached to the image as usual, but context-name is an additional parameter of the computing function.

With the Eleventy plugin, images-responsiver could be exposed as an Eleventy filter, so that developers can pass the context as additional parameter in different templates.

@nhoizey nhoizey changed the title Support additional context parameter for presets Support additional context for presets Mar 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant