{% extends "base.html.twig" %}

{% set pageTitle = "projects"|trans|title %}
{% set titleExtension = "projects_intro_title"|trans|title %}

{% set tags = getProjectTags(app.request) %}
{% set keywords = '' %}
{% set index = 0 %}
{% for tag in tags %}
    {% set keywords = keywords ~ tag %}
    {% if index + 1 != tags|length %}
        {% set keywords = keywords ~ ',' %}
    {% endif %}
    {% set index = index + 1 %}
{% endfor %}
{% block meta %}
    <meta name="description" content='{{"projects_intro_description"|trans|capitalize}}'>
    <meta name="keywords" content="{{ keywords }}">
{% endblock %}

{% block stylesheets %}
    <link rel="stylesheet" href="{{ asset('styles/projects.css') }}">
{% endblock %}

{% set tags = getProjectTags(app.request) %}

{% block content %}

    {% include "components/_intro.html.twig" with {options: {
        title: "projects_intro_title"|trans|title,
        description: "projects_intro_description"|trans|capitalize,
        skip: ".projects",
        bg: false,
        projectSearch: true
    }} %}

    <div class="section-wrapper projects-wrapper">
        {% include "components/_projects-content.html.twig" %}
    </div>
{% endblock %}