From 9f537eb6764eb35519469d16bd9e240cc0b72aa3 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 10 Sep 2015 02:59:20 +0100 Subject: [PATCH] Re-added some blocks --- source/blog.html | 52 ++++++++++--------- source/testimonials.html.twig | 44 +++++++++------- .../oliverdavies/_layouts/default.html.twig | 2 +- 3 files changed, 53 insertions(+), 45 deletions(-) diff --git a/source/blog.html b/source/blog.html index 37dd421e..27ee9be2 100644 --- a/source/blog.html +++ b/source/blog.html @@ -8,31 +8,35 @@ pagination: use: - posts --- -

Blog

+{% block content %} +

Blog

- -{% if page.pagination.previous_page or page.pagination.next_page %} - -{% endif %} + {% if page.pagination.previous_page or page.pagination.next_page %} + + {% endif %} +{% endblock %} + +{% block body_classes 'page--blog page--blog__list' %} diff --git a/source/testimonials.html.twig b/source/testimonials.html.twig index 8d26982a..07ed8a1e 100644 --- a/source/testimonials.html.twig +++ b/source/testimonials.html.twig @@ -79,27 +79,31 @@ 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.

--- -

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 %} + {{ testimonial.text|raw }} +
+ {% endfor %} +{% endblock %} + +{% block body_classes 'page--testimonials' %} diff --git a/source/themes/opdavies/oliverdavies/_layouts/default.html.twig b/source/themes/opdavies/oliverdavies/_layouts/default.html.twig index 8c9fa9af..1b0ff29d 100644 --- a/source/themes/opdavies/oliverdavies/_layouts/default.html.twig +++ b/source/themes/opdavies/oliverdavies/_layouts/default.html.twig @@ -29,7 +29,7 @@ {% endfor %} - +