Skip to content

Commit

Permalink
make real bottom footer
Browse files Browse the repository at this point in the history
  • Loading branch information
aloxe committed Dec 21, 2024
1 parent 58c1da0 commit 23a3098
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
31 changes: 17 additions & 14 deletions src/_layouts/base.njk
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,25 @@
{% endblock %}
</head>
<body>
{% block menu %}
{% include "menu.njk" %}
{% endblock %}

{% block main %}
<main class="container mx-auto px-6 pt-4 pb-16 {% if ismarkdown %}mkdn{% endif %}">
{% block header %}
{% include "header.njk" %}
{% endblock %}
<!-- wrapper for sticky footer needs a fixed height for the footer
because the flex solution breaks in lighthouse -->
{# <div class="min-h-[calc(100vh-3.5rem)]"> #}
{% block menu %}
{% include "menu.njk" %}
{% endblock %}

{% block content %}
{{ content | safe }}
{% endblock %}
</main>
{% endblock %}
{% block main %}
<main class="container mx-auto px-6 py-4 {% if ismarkdown %}mkdn{% endif %}">
{% block header %}
{% include "header.njk" %}
{% endblock %}

{% block content %}
{{ content | safe }}
{% endblock %}
</main>
{% endblock %}
{# </div> #}
{% block footer %}
{% include "footer.njk" %}
{% endblock %}
Expand Down
2 changes: 1 addition & 1 deletion src/_layouts/includes/footer.njk
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<footer class="bg-black text-white text-center p-4 fixed bottom-0 w-full">
<footer class="bg-black text-white text-center p-4 w-full h-14">
made with ♥
</footer>

0 comments on commit 23a3098

Please sign in to comment.