Indenting

This commit is contained in:
Oliver Davies 2015-07-03 01:37:23 +01:00
parent abc42cf82d
commit 8ddb2edd31

View file

@ -63,28 +63,28 @@ testimonials:
{% block body_classes %}page--testimonials{% endblock %}
{% 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>
<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 %}