website/templates/base.html.twig
Jeroen De Meerleer 4cb2b07862
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".
2023-10-13 09:28:01 +02:00

23 lines
552 B
Twig

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}{% endblock %}{% if block("title") is not empty %} :: {% endif %}Jeroen De Meerleer</title>
{% block styles %}{% endblock %}
{% block scripts %}{% endblock %}
</head>
<body>
{% block content %}{% endblock %}
{% block extrahtml %}{% endblock %}
<footer class="footer">
{% block footer %}{% endblock %}
</footer>
</body>
</html>