Start adding event data, rebuild talks page
This commit is contained in:
parent
3f4fac395b
commit
255dc31bae
7 changed files with 170 additions and 98 deletions
|
@ -7,37 +7,18 @@ use: [talks, posts]
|
|||
---
|
||||
<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>
|
||||
{% set events = [] %}
|
||||
|
||||
<p>There is also information about events that I’ve attended and spoken at on my <a href="{{ site.lanyrd.url }}">Lanyrd</a> and <a href="{{ site.joindin.url }}">Joind.in</a> profiles.</p>
|
||||
{% for talk in data.talks %}
|
||||
{% for event in talk.events %}
|
||||
{% set event = event|merge({ talk: talk }) %}
|
||||
{% set events = events|merge([event]) %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
{% set now = 'now'|date('U') %}
|
||||
|
||||
{% include "talks-table" with { talks: data.talks } %}
|
||||
|
||||
<!-- <table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>Talk</th>
|
||||
<th>Event</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for talk in data.talks if talk.date < now %}
|
||||
<tr>
|
||||
<td>
|
||||
{{ talk.date|date(site.default_date_format) }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<a href="{{ talk.url }}">
|
||||
{{ talk.title }}
|
||||
</a>
|
||||
</td>
|
||||
|
||||
<td>{{ talk.event.name }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table> -->
|
||||
{% for event in events|sortbyfield('date')|reverse %}
|
||||
{{ event.title }}<br>
|
||||
{{ event.date }}<br>
|
||||
{{ event.talk.title }}<br>
|
||||
{{ event.talk.url }}<br><br>
|
||||
{% endfor %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue