Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make footer sticky #129

Merged
merged 1 commit into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
---
<!DOCTYPE html>
<html lang="{{ site.lang | default: "en" }}">
<html lang="{{ site.lang | default: "en" }}" class="h-100">

{% assign default_title=page.name| split: "." | first | capitalize %}
{% assign title=page.title | default: default_title | append: " - " | append: site.title %}
Expand Down Expand Up @@ -49,7 +49,7 @@
<link rel="stylesheet" href="{{ '/assets/css/' | append: css | append: '.css' | relative_url }}">
</head>

<body>
<body class="d-flex flex-column h-100">
<header class="navbar navbar-expand-lg navbar-light bg-body">
<nav class="container">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-bs-toggle="collapse"
Expand Down Expand Up @@ -78,8 +78,10 @@
</div>
</nav>
</header>
{{ content }}
<footer class="container-fluid footer text-center border-top border-bottom">
<div class="flex-shrink-0">
{{ content }}
</div>
<footer class="container-fluid footer mt-auto text-center border-top border-bottom">
<div>
<a href="{{ '/downloads.html' | relative_url }}" title="DOWNLOAD"><img src="{{ '/assets/img/download.png' | relative_url }}" alt="Download Erlang/OTP"></a>
</div>
Expand Down
1 change: 0 additions & 1 deletion _sass/_default.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ blockquote.blockquote {
}

.footer {
@include my(3);
@include py(3);
display: grid;
grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
Expand Down
Loading