Skip to content

Instantly share code, notes, and snippets.

View bigflannel's full-sized avatar

Mike Hartley bigflannel

View GitHub Profile
@bigflannel
bigflannel / plugin.json
Last active August 29, 2015 14:00
bigflannel Slideshow Embed plugin for Koken
{
"name": "bigflannel Slideshow Embed",
"version": "0.1",
"description": "Embed a slideshow with controls in an essay.",
"author": {
"name": "bigflannel",
"link": "http://bigflannel.com"
},
"shortcodes": {
<!-- 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>
@bigflannel
bigflannel / gist:08b89b943ab9a9a5e23a
Created May 10, 2014 17:33
Koken Lens if tag and image aspect ratio
<!-- Display the essay's featured image -->
<koken:featured_image>
<!-- Link image to essay -->
<koken:link title="Read {{ essay.title }}">
<!-- Display featured image -->
<koken:if condition="content.width >= content.height" value="true">
<koken:img class="horizontal-image" />
<koken:else>
<koken:img class="vertical-image" />
</koken:if>