How to get filename image’s extensions
I use loop:
{% for filename, image in page.media.images %}
And I want to retrieve a image’s filename extension, how can I do that?
Figured it out by myself:
{% set filename_ext = filename|split(’.’) %}
then:
{{ filename_ext[1] }}
Actually there’s a better way:
{{ image.extension }}