Don't show a company name without a role
This commit is contained in:
parent
101471dd10
commit
f5b911837b
|
@ -102,8 +102,12 @@ testimonials:
|
||||||
<article class="testimonial">
|
<article class="testimonial">
|
||||||
<h2 class="testimonial__name">{{ testimonial.name }}</h2>
|
<h2 class="testimonial__name">{{ testimonial.name }}</h2>
|
||||||
|
|
||||||
{% if testimonial.role or company.name %}{% spaceless %}
|
{% if testimonial.role and not company.name %}
|
||||||
<p>
|
<p class="lead">
|
||||||
|
{{ testimonial.role }}
|
||||||
|
</p>
|
||||||
|
{% elseif testimonial.role and company.name %}{% spaceless %}
|
||||||
|
<p class="lead">
|
||||||
{{ testimonial.role }} at
|
{{ testimonial.role }} at
|
||||||
{% if company.url %}
|
{% if company.url %}
|
||||||
<a href="{{ company.url }}" title="{{ company.name }}">{{ company.name }}</a>
|
<a href="{{ company.url }}" title="{{ company.name }}">{{ company.name }}</a>
|
||||||
|
|
Loading…
Reference in a new issue