How would I go about enabling responsiveness in LightSlider using the page's frontmatter, or is that possible at the moment?
Archive
I think it's just working by default?
I guess I just can't format the settings for break points correctly in the frontmatter & couldn't find examples...
A line break in markdown is usually 2 spaces at the end of the line: http://markdown-guide.readthedocs.io/en/latest/basics.html#line-return
Not sure how that will play with YAML frontmatter though.
Stuck on the same thing. What Janne is asking for is how do you translate this into frontmatter. I have tried every combination of spacing and formatting and cannot get the breakpoints to work.
TXT
.lightSlider({
item:4,
responsive : [
{
breakpoint:800,
settings: {
item:3,
}
},
{
breakpoint:480,
settings: {
item:2,
}
}
]
});
---
If tabs are not allowed, this should work. Two spaces per indentation? No luck either way. Thanks
YAML
lightslider:
slider_type: text
item: 3
responsive:
breakpoint: 800
settings:
item: 2
breakpoint: 480
settings:
item: 1
---
Has anyone had any luck with this? Stuck with the same issue.
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 0 | 1338 | 9 years ago | ||
| 2 | 927 | 9 years ago | ||
| 2 | 4056 | 9 years ago | ||
| 1 | 2941 | 9 years ago | ||
| 3 | 1112 | 9 years ago |