diff options
| author | julie lala <jules@okfoc.us> | 2015-04-27 17:08:25 -0400 |
|---|---|---|
| committer | julie lala <jules@okfoc.us> | 2015-04-27 17:08:25 -0400 |
| commit | 1451d6a1262e394dd8505ac6523d0eaea5dfd57c (patch) | |
| tree | 2ab626558332fa5ed0ee6d3faa5ff76c53eba070 /site/templates | |
| parent | c78f208f3e6bd1199f0d6c88d2431609b58bd303 (diff) | |
| parent | 934a8ac8afdaa2afc2061542abbf3f4864a476b1 (diff) | |
Merge branch 'twohustlers' of github.com:okfocus/okcms into twohustlers
Diffstat (limited to 'site/templates')
| -rw-r--r-- | site/templates/page.liquid | 4 | ||||
| -rw-r--r-- | site/templates/project.liquid | 16 |
2 files changed, 14 insertions, 6 deletions
diff --git a/site/templates/page.liquid b/site/templates/page.liquid index 63f71f2..5c3cabe 100644 --- a/site/templates/page.liquid +++ b/site/templates/page.liquid @@ -2,6 +2,10 @@ <span> {% if page.image %} <span class="postname">{{page.title}}</span> + <div class="galnav"> + <span class="prevbutton">PREVIOUS ASSET</span> + <span class="nextbutton">NEXT ASSET</span> + </div> <img class="mainimg" src="{{page.image}}"> <div class="content"> {{page.body | newline_to_br}} diff --git a/site/templates/project.liquid b/site/templates/project.liquid index b54722d..0dc828c 100644 --- a/site/templates/project.liquid +++ b/site/templates/project.liquid @@ -1,13 +1,17 @@ <div class="entry"> <span> <span class="postname">{{project.title}}</span> - + <div class="galnav"> + <span class="prevbutton">PREVIOUS ASSET</span> + <span class="nextbutton">NEXT ASSET</span> + </div> <div class="gallery" id="okgallery"> - {% if project.video.token %} - <div class="cell video" style="background-image:url({{ project.video.thumb }})" data-video="https://player.vimeo.com/video/{{ project.video.token }}" data-caption="{{ project.video.title }}"></div> - {% endif %} - {% for image in project.images %} - <div class="cell" data-caption="{{ image.caption }}"><img src="{{ image.uri }}"></div> + {% for media in project.media %} + {% if media.token %} + <div class="cell video" style="background-image:url({{ media.thumb }})" data-video="https://player.vimeo.com/video/{{ media.token }}" data-caption="{{ media.title }}"></div> + {% else %} + <div class="cell" data-caption="{{ media.caption }}"><img src="{{ media.uri }}"></div> + {% endif %} {% endfor %} </div> <div class="caption"></div> |
