Hey guys,
when using a centralized folder for image linking like the learn page suggests, is it somehow possible to store the image path for "page.find('/images')" in a global twig variable?
right now I always have to set the image path on each template, like this:
{% set images = page.find('/images) %}}
{ images.media['my-image.jpg'].html }}
That's redundant...
My idea is to define the set images variable somewhere global, to use is in multiple templates without defining it each time.
Maybe this is possible by extending the twig_vars in my theme.php, but I'm not sure if that's the right approach?