Skip to content

Commit

Permalink
Merge pull request #129 from osbre/feat/sticky-footer
Browse files Browse the repository at this point in the history
Make footer sticky
  • Loading branch information
garazdawi authored Apr 18, 2024
2 parents 9ced5f6 + d6e6e17 commit 2cb4261
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
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

0 comments on commit 2cb4261

Please sign in to comment.