Extract into partials
This commit is contained in:
parent
5b138d5ebd
commit
4529c3e7ec
7 changed files with 40 additions and 38 deletions
18
source/_partials/experience/item.twig
Normal file
18
source/_partials/experience/item.twig
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue