templates/web/homepage/index.html.twig line 1

  1. {% extends "web/base.html.twig" %}
    
    {% block description %}{{ category.description }}{% endblock %}
    
    {% block body %}
        {% set content = replaced_content|raw %}
    
        {% if '@@FORM@@' in content %}
            {% for label, messages in app.flashes(['success', 'warning']) %}
                {% for message in messages %}
                    {% set content = content|replace({"@@FORM@@": '<div class="flash-' ~ label ~ '">
                        ' ~ message ~ '
                    </div>@@FORM@@'}) %}
                {% endfor %}
            {% endfor %}
            {% set content = content|replace({"@@FORM@@": form(contact_form)})|raw %}
        {% endif %}
    
        {% if '@@BLOG@@' in content %}
            {% set blog %}
                {% include 'web/blog/_article-list.html.twig' with {'blogArticles': blogArticles} %}
            {% endset %}
            {% set content = content|replace({"@@BLOG@@": blog}) %}
        {% endif %}
    
        {{ content|raw }}
    {% endblock body %}
    
    
    {% block javascripts %}
        {{ parent() }}
        {% if category.javascript %}
            <script type="text/javascript">
                {{ category.javascript | raw }}
            </script>
        {% endif %}
    {% endblock %}