Skip to content

Instantly share code, notes, and snippets.

@nicokaiser
Created May 30, 2013 13:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicokaiser/5677779 to your computer and use it in GitHub Desktop.
Save nicokaiser/5677779 to your computer and use it in GitHub Desktop.
<koken:load limit="10" infinite="true">
<koken:loop>
<div style="margin:25px auto;">
<koken:link lightbox="true">
<koken:img lazy="true" fade="true" />
</koken:link>
</div>
<div style="width:80%; margin:0 auto 72px;">
<h2>{{ content.title | content.filename }}</h2>
{{ content.caption paragraphs="true" }}
</div>
</koken:loop>
<koken:pagination>
<koken:if condition="{{ page }} < {{ pages }}">
<koken:link data="next_page" title="{{ next_page.number }}" bind_to_key="right">
Load more content
</koken:link>
</koken:if>
</koken:pagination>
<koken:else>
No photos found.
</koken:load>
<koken:include file="layouts/footer.html" />
@nicokaiser
Copy link
Author

The inline CSS is not nice at all, but I wanted to have captions and titles with proper margins without changing settings.css.lens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment