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 · 349 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 Anna, 17 hours ago
1 49 10 hours ago
Support · by gtx, 1 week ago
4 227 2 days ago
Support · by Paul Hodges, 2 weeks ago
13 277 5 days ago
Support · by Anna, 3 weeks ago
9 335 1 week ago
Support · by TomW, 2 weeks ago
4 188 2 weeks ago