Skip to content

Instantly share code, notes, and snippets.

@HOFB2015
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HOFB2015/c317af5460b25483f02f to your computer and use it in GitHub Desktop.
Save HOFB2015/c317af5460b25483f02f to your computer and use it in GitHub Desktop.
{% 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