Update talk page

This commit is contained in:
Oliver Davies 2016-06-14 02:24:59 +01:00
parent 4ce3935951
commit 83d27dd7b2

View file

@ -8,20 +8,24 @@ use:
--- ---
<h1>Talks</h1> <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="mailto:{{ site.email }}?subject=Speaking%20enquiry">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 found = false %} {% set found = false %}
{% set year = 0 %} {% set year = 0 %}
{% set now = 'now'|date('U') %} {% set now = 'now'|date('U') %}
{% for talk in data.talks|reverse if talk.date >= now %} {% for talk in data.talks|reverse if talk.date >= now %}
{% if loop.first %} {% if loop.first %}
{% set found = true %} {% set found = true %}
<h2>Upcoming Talks</h2> <h2>Upcoming Talks</h2>
{% endif %} {% endif %}
{% if talk.date|date('Y') != year %} {% if talk.date|date('Y') != year %}
{% set year = talk.date|date('Y') %} {% set year = talk.date|date('Y') %}
</ul> </ul>
<h3>{{ year }}</h3> <h3>{{ year }}</h3>
<ul> <ul>
@ -29,20 +33,24 @@ use:
{{ include('talk-listing-item') }} {{ include('talk-listing-item') }}
{% endfor %} {% endfor %}
{% if found %} {% if found %}
</ul> </ul>
{% endif %} {% endif %}
{% set found = false %} {% set found = false %}
{% set year = 0 %} {% set year = 0 %}
{% for talk in data.talks if talk.date < now %} {% for talk in data.talks if talk.date < now %}
{% if loop.first %} {% if loop.first %}
{% set found = true %} {% set found = true %}
<h2>Previous Talks</h2> <h2>Previous Talks</h2>
{% endif %} {% endif %}
{% if talk.date|date('Y') != year %} {% if talk.date|date('Y') != year %}
{% set year = talk.date|date('Y') %} {% set year = talk.date|date('Y') %}
</ul> </ul>
<h3>{{ year }}</h3> <h3>{{ year }}</h3>
<ul> <ul>
@ -50,6 +58,7 @@ use:
{{ include('talk-listing-item') }} {{ include('talk-listing-item') }}
{% endfor %} {% endfor %}
{% if found %} {% if found %}
</ul> </ul>
{% endif %} {% endif %}