{% set blogTags = getBlogTags(app.request) %}
<div class="section-wrapper home-blogs-wrapper">
    <div class="content-section home-blogs">
        <div class="content-title-wrapper">
            <h2 class="content-title">{{"news_from_technoone"|trans|title}}</h2>
        </div>
        <div class="blogs-wrapper">
            <h2 class="section-title">{{"featured_blogs"|trans|title}}</h2>
            <a href="{{ path('blog', {'locale': locale}) }}" class="standart-button border-button arrow-anim arrow-dark">{{"inspect_all"|trans|capitalize}}</a>
        </div>
        <div class="blog-container">
            {% if not allBlogs is defined %}
                {% set allBlogs = getBlogs({}, app.request) %}
            {% endif %}
            {% set blogs = allBlogs['blogs'] %}
            {% set mainBlog = allBlogs['mainBlog'] %}
            {% if blogs|length > 1 %}
                {% for i in 0..1 %}
                    {% set blog = blogs[i] %}
                    {% include 'components/_blog-item.html.twig' with {blog: blog} %}
                {% endfor %}
            {% endif %}
            {% include 'components/_blog-item.html.twig' with {type:"central", blog: mainBlog} %}
            {% if blogs|length > 3 %}
                {% for i in 2..3 %}
                    {% set blog = blogs[i] %}
                    {% include 'components/_blog-item.html.twig' with {blog: blog} %}
                {% endfor %}
            {% endif %}
        </div>
    </div>
</div>