Updated experience markup
This commit is contained in:
parent
b329f8d7f9
commit
73b2a3eda2
|
@ -74,27 +74,25 @@ experiences:
|
||||||
---
|
---
|
||||||
<h1>Experience</h1>
|
<h1>Experience</h1>
|
||||||
|
|
||||||
{% for experiences in page.experiences|batch(2) %}
|
{% for experience in page.experiences %}
|
||||||
<div class="row">
|
|
||||||
{% for experience in experiences %}
|
|
||||||
{% set company = site.companies[experience.company] %}
|
{% 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 %}
|
||||||
|
@ -103,8 +101,8 @@ experiences:
|
||||||
{% endspaceless %}.
|
{% endspaceless %}.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="experience__description">
|
||||||
{{ experience.description|raw }}
|
{{ experience.description|raw }}
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue