- Merge request !209fix syntax error in SDC documentation with image component → (Merged) created by heyyo
This example in the docs has a syntax error: https://project.pages.drupalcode.org/canvas/sdc-components/image/#usage-...
{% include 'canvas:image' with image|merge({
loading: 'lazy',
sizes: '(max-width: 768px) 100vw, 50vw',
class: 'card--image',
attributes: create_attribute({
'data-testid': 'card-component-image',
}),
} only %}
It's missing a ) right before the only. So it should be
{% include 'canvas:image' with image|merge({
loading: 'lazy',
sizes: '(max-width: 768px) 100vw, 50vw',
class: 'card--image',
attributes: create_attribute({
'data-testid': 'card-component-image',
}),
}) only %}Active
1.0
Documentation
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.