Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

Default "sizes" attribute gets truncated

Started by Thomas Vantuycom 6 years ago · 0 replies · 368 views
6 years ago

I'd like to add a default sizes attribute to my images. Setting defaults in system.yaml works, but the sizes attribute gets truncated after the first comma.

Setting:

YAML
images:
    defaults:
        sizes: '(min-width: 36em) 50vw, 100vw'

leads to:

HTML
sizes="(min-width: 36em) 50vw"

Is there any way around this?

Suggested topics

Topic Participants Replies Views Activity
Support · by Paul Hodges, 4 weeks ago
19 484 5 days ago
Support · by Lauw, 7 days ago
2 99 7 days ago
Support · by Anna, 3 weeks ago
4 426 1 week ago
Support · by gtx, 4 weeks ago
4 377 3 weeks ago
Support · by Anna, 1 month ago
9 484 3 weeks ago