Add Splide slider

This commit is contained in:
Paul Nicoué 2022-08-02 18:50:27 +02:00
parent f0f2633919
commit 0d52c5dd04
9 changed files with 4161 additions and 20 deletions

View file

@ -5,11 +5,11 @@ return function ($pages, $page) {
// Get exhibition page object
$exhibitionsPage = $pages->template('exhibitions')->first();
// Get artworks files section content
$artworks = $page->files()->template("artwork")->sortBy('sort');
// Get image files section content
$images = $page->files()->template("image")->sortBy('sort');
return [
'exhibitionsPage' => $exhibitionsPage,
'artworks' => $artworks
'images' => $images
];
};