Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Default "sizes" attribute gets truncated

Started by Thomas Vantuycom 7 years ago · 0 replies · 397 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 complanar, 6 days ago
6 139 16 hours ago
Support · by Rick Beebe, 6 days ago
2 100 2 days ago
Support · by blu3prince, 3 days ago
0 51 3 days ago
Support · by alex, 4 days ago
2 92 3 days ago
Support · by Marcel, 2 weeks ago
1 143 4 days ago