Created
June 5, 2014 17:03
-
-
Save snide/17706990a5dac1dacadf to your computer and use it in GitHub Desktop.
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
{# LIST VIEW OF ALL shows #} | |
{# You can find a full list of variables to use on this page in your CMS. #} | |
{% extends "templates/partials/base.html" %} | |
{% block content %} | |
<div class="show-list"> | |
<div class="container"> | |
{% set shows = get('shows') %} | |
{% for show in shows|sort('sort_order') %} | |
<h2><a href="{{ url(show) }}">{{ show.name }}</a> <span>({{show.videos|size}} videos)</span></h2> | |
<ul class="boxes"> | |
{% set videos = show.videos|sort('sort_oder') %} | |
{% for video in videos|slice(0,4) %} | |
{% set item = getItem(video) %} | |
<li> | |
{# Episodes and podcasts are slightly different #} | |
<a href="{{ url(item) }}"> | |
<div class="image" style="background-image: url({{ item.url_of_video.thumbnail_url|imageSize(300) }});"></div> | |
<h4>{{ item.name }}</h4> | |
<p class="desc">{{ item.url_of_video.description|striptags|truncate(100) }}</p> | |
</a> | |
</li> | |
{% endfor %} | |
</ul> | |
{% endfor %} | |
</div> | |
</div> | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment