From 2d2cb25023b4807485b504674774e5173ee20cbb Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 31 Dec 2015 10:39:35 +0000 Subject: [PATCH] Group talks by type --- source/_includes/talk-list-item.html.twig | 6 ++++++ source/_includes/talk-list.html.twig | 5 +++++ source/_includes/talk-listing-item.html.twig | 6 ------ source/talks.html.twig | 20 ++++++++++++++++++++ source/talks.md | 17 ----------------- 5 files changed, 31 insertions(+), 23 deletions(-) create mode 100644 source/_includes/talk-list-item.html.twig create mode 100644 source/_includes/talk-list.html.twig delete mode 100644 source/_includes/talk-listing-item.html.twig create mode 100644 source/talks.html.twig delete mode 100644 source/talks.md diff --git a/source/_includes/talk-list-item.html.twig b/source/_includes/talk-list-item.html.twig new file mode 100644 index 00000000..cfbe872a --- /dev/null +++ b/source/_includes/talk-list-item.html.twig @@ -0,0 +1,6 @@ +
  • + {{ talk.event.name }} - + + {{ talk.title }} + +
  • diff --git a/source/_includes/talk-list.html.twig b/source/_includes/talk-list.html.twig new file mode 100644 index 00000000..c1ba5465 --- /dev/null +++ b/source/_includes/talk-list.html.twig @@ -0,0 +1,5 @@ + diff --git a/source/_includes/talk-listing-item.html.twig b/source/_includes/talk-listing-item.html.twig deleted file mode 100644 index e0301387..00000000 --- a/source/_includes/talk-listing-item.html.twig +++ /dev/null @@ -1,6 +0,0 @@ -{{ talk.event.name }} - -{% if talk.fuzzy_date %} - {{ talk.title }} -{% else %} - {{ talk.title }} -{% endif %} diff --git a/source/talks.html.twig b/source/talks.html.twig new file mode 100644 index 00000000..be773fa1 --- /dev/null +++ b/source/talks.html.twig @@ -0,0 +1,20 @@ +--- +layout: page +nav: talks +title: Talks +meta: + description: 'Information about previous and upcoming talks that Oliver has presented at conferences and user groups' +use: + - talks +--- +

    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 get in touch.

    +

    There is also information about events that I’ve attended and spoken at on my Lanyrd and Joind.in profiles.

    + +

    Conferences

    + +{{ include('talk-list', { talks: data.talks, type: 'conference' }) }} + +

    User groups

    + +{{ include('talk-list', { talks: data.talks, type: 'meetup' }) }} + diff --git a/source/talks.md b/source/talks.md deleted file mode 100644 index 52a362ce..00000000 --- a/source/talks.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -layout: default -nav: talks -title: Talks -meta: - description: 'Information about previous and upcoming talks that Oliver has presented at conferences and user groups' -use: - - talks ---- -# Talks - -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 get in touch. - -There is also information about events that I’ve attended and spoken at on my Lanyrd and Joind.in profiles. - -{{ include('upcoming-talks') }} -{{ include('previous-talks') }}