diff --git a/source/blog.html b/source/blog.html index 60ff0f8d..37dd421e 100644 --- a/source/blog.html +++ b/source/blog.html @@ -8,35 +8,31 @@ pagination: use: - posts --- -{% block body_classes %}page--blog page--blog__list{% endblock %} +

Blog

-{% block content %} -

Blog

+ - - {% if page.pagination.previous_page or page.pagination.next_page %} - - {% endif %} -{% endblock content %} +{% if page.pagination.previous_page or page.pagination.next_page %} + +{% endif %} diff --git a/source/contact.md b/source/contact.md index 0a917cad..691c5cf2 100644 --- a/source/contact.md +++ b/source/contact.md @@ -5,9 +5,6 @@ title: Contact meta: description: 'Information about how to get in touch with Oliver.' --- -{% block body_classes 'page--contact' %} - -{% block content %} # Contact The best ways to contact me is via email and @@ -29,4 +26,3 @@ Here are some other places to find me online: * Speaker Deck * Ansible Galaxy * Flickr -{% endblock %} diff --git a/source/experience.md b/source/experience.md index 6bfcb3fd..a6e5c339 100644 --- a/source/experience.md +++ b/source/experience.md @@ -5,9 +5,6 @@ title: Experience meta: description: 'Information about freelance services that Oliver offers.' --- -{% block body_classes 'page--experience' %} - -{% block content %} # Experience ## PHP @@ -50,4 +47,3 @@ meta: * Continuous integration using [Jenkins](http://jenkins-ci.org). * Virtual machine setup using [Vagrant](http://vagrantup.com) for development or server testing. * Domain name and DNS management. -{% endblock %} diff --git a/source/index.md b/source/index.md index a563cb14..53f10d31 100644 --- a/source/index.md +++ b/source/index.md @@ -12,9 +12,6 @@ meta: height: 327 type: image/jpg --- -{% block body_classes 'page--about' %} - -{% block content %} # About Picture of Oliver @@ -36,4 +33,3 @@ I maintain several contrib projects on Drupal.org, and have contributed to numer I'm also the [Git Documentation Maintainer](https://www.drupal.org/node/2248627#comment-8887789) for the Drupal project, and a provisional member of the [Drupal Security team](https://www.drupal.org/security-team). I organise Drupal user group events such as talk nights and code sprints in South Wales and Bristol, and am a founding [DrupalCamp Bristol](http://2015.drupalcampbristol.co.uk) organising committee member. I also regularly attend and speak at other meetups and conferences related to Drupal, PHP, Linux, DevOps, and web development and accessibility. -{% endblock %} diff --git a/source/talks.twig b/source/talks.twig index 6fc2453d..b307e47c 100644 --- a/source/talks.twig +++ b/source/talks.twig @@ -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' %} +

Talks

-{% block content %} -

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.

-

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.

-

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

+{% 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 %} -

Upcoming Talks

- {% endif %} - - {% set this_year %}{{ talk.date|date('Y') }}{% endset %} - - {% if this_year != year %} - {% if new_year %} - {# Close the list for the previous year. #} - - {% endif %} - - {% set found, year = true, this_year %} - -

{{ this_year }}

- +{% for talk in talks if talk.date >= now %} + {% if loop.first %} +

Upcoming Talks

{% 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 %} -

Previous Talks

+ {% if this_year != year %} + {% if new_year %} + {# Close the list for the previous year. #} + {% 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. #} - - {% endif %} - - {% set year, found = this_year, true %} - -

{{ this_year }}

- +

{{ this_year }}

+ +{% endif %} + +{% set found, year, new_year = false, '0', false %} + +{% for talk in talks if talk.date < now %} + {% if loop.first %} +

Previous Talks

+ {% endif %} + + {% set this_year %}{{ talk.date|date('Y') }}{% endset %} + + {% if this_year != year %} + {% if new_year %} + {# Close the list for the previous year. #} + + {% endif %} + + {% set year, found = this_year, true %} + +

{{ this_year }}

+ +{% endif %} diff --git a/source/testimonials.html.twig b/source/testimonials.html.twig index f1c80d0b..8d26982a 100644 --- a/source/testimonials.html.twig +++ b/source/testimonials.html.twig @@ -79,31 +79,27 @@ testimonials:

Everything we have thrown at Oliver, he has approached with an open and flexible mind that has allowed him to work on a wide range of projects and features for Drupal products.

--- -{% block body_classes 'page--testimonials' %} +

Testimonials

+

Here are some examples of the nice things that clients and former colleagues have said.

+

You can view more recommendations on my LinkedIn profile.

-{% block content %} -

Testimonials

-

Here are some examples of the nice things that clients and former colleagues have said.

-

You can view more recommendations on my LinkedIn profile.

+{% for testimonial in page.testimonials|reverse|slice(0,5) %} +
+

{{ testimonial.name }}

- {% for testimonial in page.testimonials|reverse|slice(0,5) %} -
-

{{ testimonial.name }}

+ {% if testimonial.role or testimonial.company %}{% spaceless %} +

+ {{ testimonial.role }} at + {% if testimonial.url %}{% endif %} + {{ testimonial.company }} + {% if testimonial.url %}{% endif %} +

+ {% endspaceless %}{% endif %} - {% if testimonial.role or testimonial.company %}{% spaceless %} -

- {{ testimonial.role }} at - {% if testimonial.url %}{% endif %} - {{ testimonial.company }} - {% if testimonial.url %}{% endif %} -

- {% endspaceless %}{% endif %} + {% if testimonial.image %} + {{ testimonial.name }} + {% endif %} - {% if testimonial.image %} - {{ testimonial.name }} - {% endif %} - - {{ testimonial.text|raw }} -
- {% endfor %} -{% endblock %} + {{ testimonial.text|raw }} +
+{% endfor %} diff --git a/source/themes/opdavies/oliverdavies/_layouts/default.html.twig b/source/themes/opdavies/oliverdavies/_layouts/default.html.twig index 60e51c94..8c9fa9af 100644 --- a/source/themes/opdavies/oliverdavies/_layouts/default.html.twig +++ b/source/themes/opdavies/oliverdavies/_layouts/default.html.twig @@ -29,7 +29,7 @@ {% endfor %} - +