From 10b1bca74ae8d11389f6c49658202077a852e751 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 15 Jul 2015 23:45:52 +0100 Subject: [PATCH] Make talks unordered lists --- source/_partials/talk-listing-item.html | 3 +- source/talks.html | 74 ++++++++++++++----------- 2 files changed, 43 insertions(+), 34 deletions(-) diff --git a/source/_partials/talk-listing-item.html b/source/_partials/talk-listing-item.html index 75890dcf..2dbb56af 100644 --- a/source/_partials/talk-listing-item.html +++ b/source/_partials/talk-listing-item.html @@ -1,2 +1 @@ -
{{ talk.date|date('F Y') }} - {{ talk.location|raw }}
-
{{ talk.description|raw }}
\ No newline at end of file +
  • {{ talk.location }} - {{ talk.title }}
  • diff --git a/source/talks.html b/source/talks.html index b4063ac8..7b9119dd 100644 --- a/source/talks.html +++ b/source/talks.html @@ -2,45 +2,55 @@ layout: default title: Talks meta: - description: 'Information about previous and upcoming talks that Oliver has presented at conferences and user groups' -use: - - talks +description: 'Information about previous and upcoming talks that Oliver has presented at conferences and user groups' +talks: + - title: So, what is this Drupal thing? + date: 2012-09-05 + location: unified.diff + - title: Drupal LDAP module + date: 2013-07-10 + location: SWDUG + - title: Test Drive Twig with Sculpin + date: 2015-07-24 + location: DrupalCamp North 2015 + - title: Sculpin + date: 2015-08-21 + location: unified.diff --- {% block body_classes 'page--talks page--talks__list' %} {% block content %} -

    Talks

    +

    Talks

    +

    I regularly speak at conferences and user groups about a range of subjects relating to Drupal, PHP and web development. If you would like to me to speak at your group or conference, please get in touch.

    -

    I regularly speak at conferences and user groups about a range of subjects relating to Drupal, PHP and web development. If you would like to me to speak at your group or conference, please get in touch.

    + {% set now = 'now'|date('U') %} + {% set talks = page.talks %} -{% set now = 'now'|date('U') %} -{% set talks = data.talks %} + {% set found = false %} + {% for talk in talks|reverse if talk.date >= now %} + {% set found = true %} + {% if loop.first %} +

    Upcoming Talks

    + + {% endif %} - {% include 'talk-listing-item' %} -{% endfor %} -{% if found %} - -{% endif %} + {% set found = false %} + {% for talk in talks if talk.date < now %} + {% set found = true %} + {% if loop.first %} +

    Previous Talks

    + + {% endif %} {% endblock %}