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 186e63ae47
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 %} :: Jeroen De Meerleer{% endif %}</title>
{% block styles %}{% endblock %}