home > slideshow : skip desktop-only slides on mobile (< 1000px)
Closes #8 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
73fb7d2fd5
commit
4490e11794
4 changed files with 39 additions and 13 deletions
|
|
@ -18,7 +18,7 @@ return function($site) {
|
|||
$units[] = ['pair' => true, 'a' => $file, 'b' => $nextFile];
|
||||
$i += 2;
|
||||
} else {
|
||||
$units[] = ['pair' => false, 'file' => $file];
|
||||
$units[] = ['pair' => false, 'file' => $file, 'isHiddenOnMobile' => (bool) $file->isHiddenOnMobile()->isTrue()];
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue