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

Provide a filter that can make standard images in a content responsive #42

Open
nhoizey opened this issue Nov 29, 2018 · 2 comments
Open

Comments

@nhoizey
Copy link
Owner

nhoizey commented Nov 29, 2018

It would be really useful to be able to write {{ post.content | cloudinary: presetName }} so that we can use different presets on the same content, in different layout places.

Currently, using {% cloudinary presetName image.jpg %} inside Markdown content means we can chose only one preset for each image, whatever the place it is inserted in layouts.

This filter would also enable writers to use Markdown's native image syntax in WYSIWYG tools.

Would this make sense?

@DirtyF
Copy link
Contributor

DirtyF commented Dec 4, 2018

What use cases are we targeting here?

Should we be able to link a preset to a layout in defaults config or in layout's front matter while keeping basic Markdown and having a hook apply the corresponding transformation?

@nhoizey
Copy link
Owner Author

nhoizey commented Dec 19, 2018

I would like to be able to use multiple presets in one single layout, because different parts of the layout can have different responsive image needs.

So I think a Liquid filter would be the best option.

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

2 participants