Refactor page title logic in base.html.twig

The commit refactors the logic for generating the page title in base.html.twig. The change ensures that if a custom title block is defined, it will be displayed before the default author name "Jeroen De Meerleer".
This commit is contained in:
Jeroen De Meerleer 2023-10-13 09:23:22 +02:00
parent 563c97925f
commit 4cb2b07862
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6

View File

@ -3,7 +3,7 @@
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Jeroen De Meerleer{% if block("title") is not empty %} :: {% block title %}{% endblock %}{% endif %}</title>
<title>{% block title %}{% endblock %}{% if block("title") is not empty %} :: {% endif %}Jeroen De Meerleer</title>
{% block styles %}{% endblock %}