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