Remove body_classes block

This commit is contained in:
Oliver Davies 2015-09-10 02:49:32 +01:00
parent f2b0352481
commit 7b0f15bfe8
9 changed files with 104 additions and 132 deletions

View file

@ -19,77 +19,73 @@ meta:
# - { date: 2015-11-01, location: Unified Diff, title: Building Static Websites with Sculpin, fuzzy_date: true }
use: [talks]
---
{% block body_classes 'page--talks page--talks__list' %}
<h1>Talks</h1>
{% block content %}
<h1>Talks</h1>
<p>I regularly speak at conferences and user groups about a range of subjects including Drupal, Sculpin and Git. If
you would like to me to speak at your group or conference, please <a href="/contact/">get in touch</a>.</p>
<p>I regularly speak at conferences and user groups about a range of subjects including Drupal, Sculpin and Git. If
you would like to me to speak at your group or conference, please <a href="/contact/">get in touch</a>.</p>
<p>There is also information about events that Ive attended and spoken at on my
<a href="{{ site.lanyrd.url }}">Lanyrd</a> and <a href="{{ site.joindin.url }}">Joind.in</a> profiles.</p>
<p>There is also information about events that Ive attended and spoken at on my
<a href="{{ site.lanyrd.url }}">Lanyrd</a> and <a href="{{ site.joindin.url }}">Joind.in</a> profiles.</p>
{% set now = 'today'|date('U') %}
{% set talks = data.talks %}
{% set now = 'today'|date('U') %}
{% set talks = data.talks %}
{% set found, year, new_year = false, '0', false %}
{% set found, year, new_year = false, '0', false %}
{% for talk in talks if talk.date >= now %}
{% if loop.first %}
<h2>Upcoming Talks</h2>
{% endif %}
{% set this_year %}{{ talk.date|date('Y') }}{% endset %}
{% if this_year != year %}
{% if new_year %}
{# Close the list for the previous year. #}
</ul>
{% endif %}
{% set found, year = true, this_year %}
<h3>{{ this_year }}</h3>
<ul>
{% else %}
{% set new_year = true %}
{% endif %}
{% include 'talk_listing_item' %}
{% endfor %}
{% if found %}
</ul>
{% for talk in talks if talk.date >= now %}
{% if loop.first %}
<h2>Upcoming Talks</h2>
{% endif %}
{% set found, year, new_year = false, '0', false %}
{% set this_year %}{{ talk.date|date('Y') }}{% endset %}
{% for talk in talks if talk.date < now %}
{% if loop.first %}
<h2>Previous Talks</h2>
{% if this_year != year %}
{% if new_year %}
{# Close the list for the previous year. #}
</ul>
{% endif %}
{% set this_year %}{{ talk.date|date('Y') }}{% endset %}
{% set found, year = true, this_year %}
{% if this_year != year %}
{% if new_year %}
{# Close the list for the previous year. #}
</ul>
{% endif %}
{% set year, found = this_year, true %}
<h3>{{ this_year }}</h3>
<ul>
{% else %}
{% set new_year = true %}
{% endif %}
{% include 'talk_listing_item' %}
{% endfor %}
{% if found %}
</ul>
<h3>{{ this_year }}</h3>
<ul>
{% else %}
{% set new_year = true %}
{% endif %}
{% endblock %}
{% include 'talk_listing_item' %}
{% endfor %}
{% if found %}
</ul>
{% endif %}
{% set found, year, new_year = false, '0', false %}
{% for talk in talks if talk.date < now %}
{% if loop.first %}
<h2>Previous Talks</h2>
{% endif %}
{% set this_year %}{{ talk.date|date('Y') }}{% endset %}
{% if this_year != year %}
{% if new_year %}
{# Close the list for the previous year. #}
</ul>
{% endif %}
{% set year, found = this_year, true %}
<h3>{{ this_year }}</h3>
<ul>
{% else %}
{% set new_year = true %}
{% endif %}
{% include 'talk_listing_item' %}
{% endfor %}
{% if found %}
</ul>
{% endif %}