templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html class="no-js" lang="fr">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <link rel="manifest" href="/manifest.webmanifest">
  8. <title>{% block title %}{{site.sitename}}{% endblock %}</title>
  9. {% if app.request.attributes.get('_route')!="home" %}
  10. <link rel="canonical" href="{{ url(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) }}" />
  11. {% endif %}
  12. {% block meta %}{% endblock %}
  13. <link rel="icon" href="{{ asset("build/images/favicon.svg") }}" />
  14. {% block stylesheets %}
  15. {{ encore_entry_link_tags('app') }}
  16. {% endblock %}
  17. </head>
  18. <body class="page">
  19. {{ include("_flash.html.twig") }}
  20. {% block menu %}{% include('pages/_nav.html.twig') with {menu_content : block('menu_content') ?? '' } %}{% endblock %}
  21. {% block body %}<main>Aucun body défini !</main>{% endblock %}
  22. {% block javascripts %}
  23. {{ encore_entry_script_tags('app') }}
  24. {% endblock %}
  25. </body>
  26. </html>