Created
August 20, 2014 15:50
-
-
Save langolf/b731c030a1c5ff23ce4d to your computer and use it in GitHub Desktop.
Slider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
block carouselVars | |
.carousel(class=carouselClassName) | |
.carousel-nav.carousel-nav-prev | |
.carousel-content | |
ul | |
mixin carousel-slide(skin) | |
li.carousel-slide(class=skin === 'light' ? 'carousel-slide-light' : 'carousel-slide-dark') | |
block | |
block carouselContent | |
.carousel-nav.carousel-nav-next | |
if pagination | |
.carousel-pagination(class=paginationSkinClass) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends /modules/ui/@carousel | |
block carouselVars | |
- var carouselClassName = 'main-carousel' | |
- var pagination = true | |
block carouselContent | |
+carousel-slide('dark') | |
+content-preview(data.mainCarousel[0], 'main-carousel', 'movie') | |
+carousel-slide('light') | |
+content-preview(data.mainCarousel[1], 'main-carousel', 'movie') | |
+carousel-slide('dark') | |
+content-preview(data.mainCarousel[0], 'main-carousel', 'movie') | |
+carousel-slide('light') | |
+content-preview(data.mainCarousel[1], 'main-carousel', 'movie') | |
+carousel-slide('dark') | |
+content-preview(data.mainCarousel[0], 'main-carousel', 'movie') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment