47 lines
1.8 KiB
Twig
47 lines
1.8 KiB
Twig
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>{% block title %}Welcome!{% endblock %}</title>
|
|
{% block stylesheets %}
|
|
{{ encore_entry_link_tags('app') }}
|
|
{% endblock %}
|
|
{% set admin = false %} <!-- ToDo: Change this with dynamic -->
|
|
</head>
|
|
<body>
|
|
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
|
<div class="container-fluid">
|
|
<a class="navbar-brand" href="{{ path('home') }}">Blog</a>
|
|
|
|
<button
|
|
class="navbar-toggler"
|
|
type="button"
|
|
data-mdb-toggle="collapse"
|
|
data-mdb-target="#navbarSupportedContent"
|
|
aria-controls="navbarSupportedContent"
|
|
aria-expanded="false"
|
|
aria-label="Toggle navigation"
|
|
>
|
|
<i class="fas fa-bars"></i>
|
|
</button>
|
|
|
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
|
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
|
|
{% if admin %}
|
|
<li class="nav-item">
|
|
<a class="nav-link active" aria-current="page" href="{{ path('post') }}">Posts</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link active" aria-current="page" href="{{ path('category') }}">Categories</a>
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
{% block body %}{% endblock %}
|
|
{% block javascripts %}
|
|
{{ encore_entry_script_tags('app') }}
|
|
{% endblock %}
|
|
</body>
|
|
</html>
|