When there are not enough content, the footer will rise to the top.
Open any page, and make it with a little content [one paragraph as an example], and then look to the footer, it will rise to the top.
Have the following changes on both vartheme_bs5
and VARTHMEM_BS5_SUBTHEME
template.
min-height: 100vh
for the page page.html.twig
to change footer margin top class from mt-5
to mt-auto
mb-5
on last div before the footer-wrapper
in the page to add spacing before footer{# Main #}
{% block main %}
<div role="main" class="main-container {{ container }} js-quickedit-main-content mb-5">
.....
.....
.....
</div>
{% endblock %}
{% if page.footer %}
{% block footer %}
<footer class="site-footer text-center text-lg-start bg-light mt-auto" role="contentinfo">
<div class="{{ container }}">
{{ page.footer }}
</div>
</footer>
{% endblock %}
{% endif %}
Before:
After [With less content]:
After [With large content]:
Fixed
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.