Skip to content

Instantly share code, notes, and snippets.

@bigflannel
Last active August 29, 2015 14:00
Show Gist options
  • Save bigflannel/11299668 to your computer and use it in GitHub Desktop.
Save bigflannel/11299668 to your computer and use it in GitHub Desktop.
<!-- Load recent archive albums -->
<div class="section-title item_meta">RECENT ALBUMS FROM THE ARCHIVE</div>
<koken:variable name="count" value="0" />
<koken:load source="albums" filter:flat="true">
<!-- Loop over each album -->
<koken:loop>
<koken:if data="album.album_type" equals="standard">
<article>
<div class="article-inner">
<koken:link>
<koken:img />
</koken:link>
album type: {{ album.album_type }}, album id: {{ album.id }}
</div>
</article>
</koken:if>
</koken:loop>
<!-- Fallback content if no data was loaded by koken:load -->
<koken:else>
<!-- Use koken:note to display this message in the Site editor only -->
<koken:note>
No recent albums found. Make some albums public in Library.
</koken:note>
</koken:load>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment