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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Default "sizes" attribute gets truncated

Started by Thomas Vantuycom 6 years ago · 0 replies · 289 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 Thomas, 1 week ago
2 53 9 hours ago
Support · by Anna, 3 days ago
2 59 12 hours ago
Support · by Justin Young, 13 hours ago
1 30 13 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 56 5 days ago