Last active
August 29, 2015 14:21
-
-
Save HOFB2015/c317af5460b25483f02f 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
{% extends 'partials/base.html.twig' %} | |
{% block content %} | |
{% set blog_image = page.media.images|first %} | |
{% if blog_image %} | |
<div class="flush-top blog-header blog-header-image" style="background: {{ page.header.bg_color }} url({{ blog_image.url }}) no-repeat right;"> | |
<h1>{{ page.title }}</h1> | |
</div> | |
{% endif %} | |
<div class="modular-row table"> | |
{{ content }} | |
<table> | |
<tr> | |
<th>1</th> | |
<th>2</th> | |
<th>3</th> | |
<th>4</th> | |
</tr> | |
<tr> | |
{% for p in page.find('/videos/'~page.header.folder~'-videos/').children if p != page %} | |
{% if loop.index0 > 0 and loop.index0 is divisible by(4) %} | |
</tr><tr> | |
{% endif %} | |
<td> | |
<a href="{{p.url}}/">{{ p.title}}</a> | |
</td> | |
{% endfor %} | |
</tr> | |
</table> | |
</div> | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment