website/templates/page.html.twig

43 lines
1.0 KiB
Twig
Raw Normal View History

2021-08-05 13:51:44 +02:00
{% extends "base.html.twig" %}
2021-08-05 14:46:20 +02:00
{% block title %}{{ title }}{% endblock %}
2021-08-05 13:51:44 +02:00
{% block content %}
2023-03-21 15:36:26 +01:00
<nav>
<div class="container py-3">
2023-03-22 11:49:46 +01:00
{{ nav | raw }}
2023-03-21 15:36:26 +01:00
</div>
</nav>
<header>
<div class="container py-4">
2023-03-22 11:49:46 +01:00
{{ header | raw }}
2023-03-21 15:36:26 +01:00
</div>
</header>
<main>
<div class="container py-4">
2023-03-22 11:49:46 +01:00
{{ content | raw }}
2023-03-21 15:36:26 +01:00
</div>
</main>
2021-08-05 13:51:44 +02:00
{% endblock %}
{% block styles %}
2022-09-12 15:18:11 +02:00
{{ encore_entry_link_tags('page') }}
{% if css is defined and css is not empty %}
{% for sheet in css %}
<link rel="stylesheet" href="{{ sheet.file }}" integrity="sha384-{{ sheet.sha384 }}">
{% endfor %}
{% endif %}
2021-08-05 13:51:44 +02:00
{% endblock %}
{% block scripts %}
2022-09-12 15:18:11 +02:00
{{ encore_entry_script_tags('page') }}
{% if js is defined and js is not empty %}
{% for script in js %}
<script src="{{ script.file }}" integrity="sha384-{{ script.sha384 }}"></script>
{% endfor %}
{% endif %}
2021-08-05 13:51:44 +02:00
{% endblock %}
2023-03-22 14:44:40 +01:00
{% block footer %}
{{ footer | raw }}
{% endblock %}