Twig templates use inheritance and allows you to create named sections like this. <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link rel='icon' href="https://akashicseer.com/web-development/symfony-5-twig-templates-dont-forget-to-call-the-parent/{{ asset('images/favicon.ico') }}" type='image/x-icon' > {% block head_extra %}{% endblock %} <title>{% block title %}{{ title }}{% endblock %}</title> {% block stylesheets %} {# 'app' must match the […]

Read more of this post