templates/base.html.twig
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="robots" content="noindex"/>
<title>
{% block title %}
Welcome!
{% endblock %}
</title>
{{ encore_entry_link_tags('app') }}
{% block stylesheets %}{% endblock %}
</head>
<body class="{{ current_menu is defined ? current_menu|replace({'.': '-'}) : '' }} {{ app.user ? 'admin' : '' }}" data-spy="scroll" data-target=".header" data-offset="-50">
{% include "navbar.html.twig" %}
{% if current_menu is defined %}
{% if current_menu != 'login' and current_menu != 'register' %}
{% include "header.html.twig" with {h1: block('h1'), subtitle: block('subtitle')} %}
{% endif %}
{% else %}
{% include "header.html.twig" with {h1: block('h1'), subtitle: block('subtitle')} %}
{% endif %}
<section id="page-body" class="py-5">
<div class="container{% if current_menu is defined and current_menu == 'home' %}-fluid{% endif %} "> {% block body %}{% endblock %}
</div>
</section>
{% block javascripts %}{% endblock %}
{{ encore_entry_script_tags('app') }}
{% include "footer.html.twig" %}
</body>
</html>