Re-added some blocks

This commit is contained in:
Oliver Davies 2015-09-10 02:59:20 +01:00
parent 7b0f15bfe8
commit 9f537eb676
3 changed files with 53 additions and 45 deletions

View file

@ -79,27 +79,31 @@ testimonials:
<p>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.</p>
---
<h1>Testimonials</h1>
<p>Here are some examples of the nice things that clients and former colleagues have said.</p>
<p>You can view more recommendations on my <a href="{{ site.linkedin.url }}">LinkedIn profile</a>.</p>
{% block content %}
<h1>Testimonials</h1>
<p>Here are some examples of the nice things that clients and former colleagues have said.</p>
<p>You can view more recommendations on my <a href="{{ site.linkedin.url }}">LinkedIn profile</a>.</p>
{% for testimonial in page.testimonials|reverse|slice(0,5) %}
<article class="testimonial">
<h2 class="testimonial__name">{{ testimonial.name }}</h2>
{% for testimonial in page.testimonials|reverse|slice(0,5) %}
<article class="testimonial">
<h2 class="testimonial__name">{{ testimonial.name }}</h2>
{% if testimonial.role or testimonial.company %}{% spaceless %}
<p>
{{ testimonial.role }} at
{% if testimonial.url %}<a href="{{ testimonial.url }}" title="{{ testimonial.company }}">{% endif %}
{{ testimonial.company }}
{% if testimonial.url %}</a>{% endif %}
</p>
{% endspaceless %}{% endif %}
{% if testimonial.role or testimonial.company %}{% spaceless %}
<p>
{{ testimonial.role }} at
{% if testimonial.url %}<a href="{{ testimonial.url }}" title="{{ testimonial.company }}">{% endif %}
{{ testimonial.company }}
{% if testimonial.url %}</a>{% endif %}
</p>
{% endspaceless %}{% endif %}
{% if testimonial.image %}
<img class="testimonial__image" src="{{ testimonial.image }}" alt="{{ testimonial.name }}"/>
{% endif %}
{% if testimonial.image %}
<img class="testimonial__image" src="{{ testimonial.image }}" alt="{{ testimonial.name }}"/>
{% endif %}
{{ testimonial.text|raw }}
</article>
{% endfor %}
{{ testimonial.text|raw }}
</article>
{% endfor %}
{% endblock %}
{% block body_classes 'page--testimonials' %}