SVGs not in page.media

In a page module folder I have a regular SVG. Its the only image file in the folder. The theme runs {% set image = page.media.images|first %} and then {{ image.html }} but nothing is output. If I add a JPEG to that folder, the JPEG loads.

It seems that page.media.images does not include SVG files. Am I missing a setting or is that not supported?

Hmm… SVG should be supported, can you please create an issue on the Grav Issue tracker: https://github.com/getgrav/grav/issues ???

Cheers!

rhukster posted the right answer in the issue tracker:

Because SVG is actually a special kind of image and can’t be manipulated with filters, it actually is listed in page.media.files.

Specifically it would be:

{{ page.media.files[‘firefox.svg’].html }}
or in markdown syntax simply: