Last active
December 15, 2015 15:49
-
-
Save tdominey/5285143 to your computer and use it in GitHub Desktop.
Loading featured album in koken:background
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
<style> | |
.thumb { | |
width:400px; | |
height:300px; | |
} | |
</style> | |
<koken:load source="featured_albums"> | |
<koken:loop> | |
<koken:background class="thumb"> | |
{{ album.title }} | |
</koken:background> | |
</koken:loop> | |
</koken:load> | |
<!-- or to load the first featured album... --> | |
<koken:load source="featured_albums"> | |
<koken:loop> | |
<koken:shift> | |
<koken:background class="thumb"> | |
{{ album.title }} | |
</koken:background> | |
</koken:shift> | |
</koken:loop> | |
</koken:load> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment