{% import 'page/macro/breadcrumbs.html.twig' as breadcrumbNode %}
<div data-component="BlogFilter" data-detail-route="blog_detail" data-index-route="blogs"
data-filter-route="blogs_with_filters" data-limit="{{ limitPerPage }}">
{% if breadcrumbs is defined %}
<div class="row">
<div class="col-12">
{{ breadcrumbNode.generate(breadcrumbs) }}
</div>
</div>
{% endif %}
<div class="title is-display-flex is-justify-content-space-between">
<h1>{{ 'News'|trans }}</h1>
<div class="sorting w-auto is-border-0 is-margin-0 is-padding-0">
<form id="blog-filter-form" action="{{ path('blogs') }}" method="get">
<ul>
<span>{{ 'Sort by'|trans }}:</span>
<li class="current"><a data-sort="date" data-dir="desc" href="#" class="desc"
data-orderable="true">{{ 'Placement date'|trans }}</a></li>
<ul class="checkbox-group d-inline-block">
{% for category in categories %}
<li>
<input type="checkbox" class="filter-checkbox" id="{{ category.slug }}"
value="{{ category.slug }}"
name="filters[]" {% if category.slug in selectedFilters %} checked {% endif %}>
<label for="{{ category.slug }}">
{{ category.category }}</label>
</li>
{% endfor %}
</ul>
</ul>
<input name="sortDir" type="hidden" value="desc"/>
<input name="limit" type="hidden" value="{{ limitPerPage }}">
</form>
</div>
</div>
<div class="row">
<main class="col-12 col-md-8">
<div id="blog-list" class="main-content blog">
<div class="row">
<script id="blogTemplate" type="text/x-jsrender">
<article class="col-12 col-md-6 flex-eq-height">
<div class="card">
<%if banner_image %>
<div class="card-img-top">
<a href="<%generateBlogUrl id slug/%>" title="<%:title%>">
<img loading="lazy" src="<%:banner_image.w992xh550%>" alt="<%:title%>" class="img-responsive">
</a>
</div>
<%/if%>
<div class="card-body">
<div class="blog">
<div class="blog-title">
<a title="<%:title%>" href="<%generateBlogUrl id slug/%>" class="mt-0">
<h3><%:title%></h3>
</a>
</div>
<div class="blog-intro">
<p>
<%stripIntro intro 55/%>
</p>
</div>
<div class="blog-footer">
<div class="date is-margin-bottom-10">
<i class="fal fa-calendar-alt icon-before is-color-primary"></i> <%dateFormat:created_at 'd-M-Y'%></div> |
<a href="<%generateBlogUrl id slug/%>" title="<%:title%>">
{{ 'Read more'|trans }}<i class="fal fa-angle-right icon-after"></i>
</a>
</div>
</div>
</div>
</div>
</article>
</script>
</div>
<div id="blog-list">
<div id="blog-results" class="row">
<p>Loading....</p>
</div>
</div>
<div class="button-set h-align h-align-center">
<a href="#" title="{{ 'Load more blog posts'|trans }}"
class="load-more is-btn is-btn-outlined is-btn-outlined-primary">
<i class="far fa-plus icon-before"></i> {{ 'Load more'|trans }}
</a>
</div>
</div>
</main>
<aside class="blog-sidebar col-12 col-md-4">
<div class="card is-box-shadow-0 newsletter-signup is-background-color-default">
<div class="card-body">
<h2>Op de hoogte blijven van het
laatste nieuws?</h2>
<p>Meld je aan voor onze nieuwsbrief</p>
<a href="/newsletter" class="is-btn is-background-color-primary">
Aanmelden
</a>
</div>
</div>
<div class="recent-vacancies">
<h2 class="is-font-size-27">{{ 'Latest vacancies'|trans }}</h2>
<div class="row">
{recentVacancies}
</div>
</div>
</aside>
</div>
</div>
<div class="clearfix"></div>