From 73b2a3eda2bc0f28ce787738d065c6bc31b2598b Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 17 Mar 2016 09:15:01 +0000 Subject: [PATCH] Updated experience markup --- source/experience.html.twig | 56 ++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 29 deletions(-) diff --git a/source/experience.html.twig b/source/experience.html.twig index c2de38e3..df1ee6d1 100644 --- a/source/experience.html.twig +++ b/source/experience.html.twig @@ -74,37 +74,35 @@ experiences: ---

Experience

-{% for experiences in page.experiences|batch(2) %} -
- {% for experience in experiences %} - {% set company = site.companies[experience.company] %} +{% for experience in page.experiences %} + {% set company = site.companies[experience.company] %} -
- {% if company.website %} -
- -

{{ company.title }}

-
-
- {% else %} -

{{ company.title }}

- {% endif %} +
+ {% if company.website %} +
+ +

{{ company.title }}

+
+
+ {% else %} +

{{ company.title }}

+ {% endif %} - {% if company.logo %} - - {% endif %} + {% if company.logo %} + + {% endif %} -
- {% spaceless %} - {{ experience.role ~ ' from ' ~ experience.start ~ ' to ' ~ experience.end|default('Present') }} - {% if experience.location %} - ({{ experience.location }}) - {% endif %} - {% endspaceless %}. -
+
+ {% spaceless %} + {{ experience.role ~ ' from ' ~ experience.start ~ ' to ' ~ experience.end|default('Present') }} + {% if experience.location %} + ({{ experience.location }}) + {% endif %} + {% endspaceless %}. +
- {{ experience.description|raw }} -
- {% endfor %} -
+
+ {{ experience.description|raw }} +
+
{% endfor %}