Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Default "sizes" attribute gets truncated

Started by Thomas Vantuycom 7 years ago · 0 replies · 440 views
7 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 webmasterodp, 1 week ago
4 157 6 days ago
Support · by nwhitfield, 1 week ago
2 136 1 week ago
Support · by stell, 3 weeks ago
5 369 2 weeks ago
Support · by gravinator, 1 month ago
5 559 2 weeks ago
Support · by Gravver, 3 weeks ago
6 347 3 weeks ago