Updated experience markup

This commit is contained in:
Oliver Davies 2016-03-17 09:15:01 +00:00
parent b329f8d7f9
commit 73b2a3eda2

View file

@ -74,37 +74,35 @@ experiences:
--- ---
<h1>Experience</h1> <h1>Experience</h1>
{% for experiences in page.experiences|batch(2) %} {% for experience in page.experiences %}
<div class="row"> {% set company = site.companies[experience.company] %}
{% for experience in experiences %}
{% set company = site.companies[experience.company] %}
<div class="experience col-md-6"> <div class="experience">
{% if company.website %} {% if company.website %}
<div> <div>
<a href="{{ company.website }}"> <a href="{{ company.website }}">
<h2>{{ company.title }}</h2> <h2 class="experience__title">{{ company.title }}</h2>
</a> </a>
</div> </div>
{% else %} {% else %}
<h2>{{ company.title }}</h2> <h2 class="experience__title">{{ company.title }}</h2>
{% endif %} {% endif %}
{% if company.logo %} {% if company.logo %}
<img class="experience__logo" src="{{ site.images_url }}/assets/images/experience/{{ company.logo }}" alt="{{ company.title }} logo"> <img class="experience__logo" src="{{ site.images_url }}/assets/images/experience/{{ company.logo }}" alt="{{ company.title }} logo">
{% endif %} {% endif %}
<div class="role-wrapper"> <div class="experience__role">
{% spaceless %} {% spaceless %}
{{ experience.role ~ ' from ' ~ experience.start ~ ' to ' ~ experience.end|default('Present') }} {{ experience.role ~ ' from ' ~ experience.start ~ ' to ' ~ experience.end|default('Present') }}
{% if experience.location %} {% if experience.location %}
({{ experience.location }}) ({{ experience.location }})
{% endif %} {% endif %}
{% endspaceless %}. {% endspaceless %}.
</div> </div>
{{ experience.description|raw }} <div class="experience__description">
</div> {{ experience.description|raw }}
{% endfor %} </div>
</div> </div>
{% endfor %} {% endfor %}