Use ternary operator for experience class

This commit is contained in:
Oliver Davies 2016-06-06 18:49:49 +01:00
parent b1ba8f201a
commit 5727688a94

View file

@ -86,7 +86,7 @@ experiences:
{% for experience in page.experiences %}
{% set company = site.companies[experience.company] %}
<div class="experience {{ company.logo ? 'experience--with-logo' : 'experience--no-logo' }}">
<div class="experience experience--{{ company.logo ? 'with-logo' : 'no-logo' }}">
<h2 class="experience__title">{{ company.title }}</h2>
{% if company.website %}