Extract into partials

This commit is contained in:
Oliver Davies 2017-03-13 07:21:33 +00:00
parent 5b138d5ebd
commit 4529c3e7ec
7 changed files with 40 additions and 38 deletions

View file

@ -0,0 +1,18 @@
{% set classes = [
'experience',
'is-flex',
company.logo ? 'has-logo',
experience.featured ? 'is-featured',
] %}
<div class="{{ classes|sort|join(' ') }}">
<div class="inner">
<h2>{{ company.name }}</h2>
{{ include('experience/website') }}
{{ include('experience/role') }}
{{ include('experience/description') }}
</div>{# /.inner #}
{{ include('experience/logo') }}
</div>