Move footer to page bottom

This commit is contained in:
Igor Scheller 2024-02-25 12:00:25 +01:00 committed by xuwhite
parent 460b416ff1
commit aea88b3579
1 changed files with 8 additions and 7 deletions

View File

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="{{ session_get('locale')|split('_')[0]|escape('html_attr') }}"> <html lang="{{ session_get('locale')|split('_')[0]|escape('html_attr') }}" class="h-100">
<head> <head>
{% block head %} {% block head %}
<meta charset="utf-8"/> <meta charset="utf-8"/>
@ -23,7 +23,7 @@
{% endblock %} {% endblock %}
</head> </head>
<body data-theme_type="{{ theme.type }}"> <body class="d-flex flex-column h-100" data-theme_type="{{ theme.type }}">
{% block body %} {% block body %}
{% block header %} {% block header %}
@ -36,11 +36,12 @@
{{ content|raw }} {{ content|raw }}
{% endblock %} {% endblock %}
</div> </div>
<div id="footer"> </div>
{% block footer %}
{% include "layouts/parts/footer.twig" %} <div id="footer" class="mt-auto">
{% endblock %} {% block footer %}
</div> {% include "layouts/parts/footer.twig" %}
{% endblock %}
</div> </div>
{% block scripts %}{% endblock %} {% block scripts %}{% endblock %}