Re-add Experience page

This commit is contained in:
Oliver Davies 2018-10-09 23:54:23 +01:00
parent 7a1afe9601
commit 37e4e80831
2 changed files with 28 additions and 21 deletions

View file

@ -56,6 +56,11 @@
href: '/talks', href: '/talks',
pattern: '^/talks/?', pattern: '^/talks/?',
}, },
{
title: 'Experience',
href: '/experience',
pattern: '^/experience/?',
},
{ {
title: 'Blog', title: 'Blog',
href: '/blog', href: '/blog',

View file

@ -115,13 +115,8 @@ experiences:
{% for experience in page.experiences|reverse %} {% for experience in page.experiences|reverse %}
{% set company = site.companies[experience.company] %} {% set company = site.companies[experience.company] %}
<div class="mb-12"> <div class="mb-16">
{% if company.logo %} <div class="flex flex-row justify-between">
<div class="float-right mt-2 mb-4 ml-4 w-16 sm:w-24 lg:w-32">
<img src="/images/experience/{{ company.logo }}" alt="{{ company.name }} logo">
</div>
{% endif %}
<div> <div>
<h2 class="mb-0">{{ company.name }}</h2> <h2 class="mb-0">{{ company.name }}</h2>
@ -144,6 +139,13 @@ experiences:
</div> </div>
{% endif %} {% endif %}
</div> </div>
{% if company.logo %}
<div class="flex-none mt-2 mb-4 ml-4 w-16 sm:w-24 lg:w-32">
<img src="/images/experience/{{ company.logo }}" alt="{{ company.name }} logo">
</div>
{% endif %}
</div>
</div> </div>
{% endfor %} {% endfor %}
</div> </div>