From ba46ef8abd1e2aea30c04b633a7fcdbb31e122b2 Mon Sep 17 00:00:00 2001 From: ch0c0l8ra1n <073bct532.rajat@pcampus.edu.np> Date: Fri, 27 Oct 2023 09:44:50 +0545 Subject: [PATCH] Made the footer stick to the bottom; fixes #576 (#1226) --- CHANGELOG.md | 1 + _layouts/base.html | 9 +++++---- assets/css/beautifuljekyll.css | 3 +++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 33735c02bef0..e9ee8b837160 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## Unreleased version - BREAKING CHANGE: Allow changing the order of the social network links that appear in the footer (#1152) - BREAKING CHANGE: `google-scholar` social network link no longer requires the prefix `citations?user=`; if you previously set this parameter, it needs to be updated (#1189) +- The footer of a page always sticks to the bottom, even on short pages (#576) - Added `author` YAML parameter to allow specifying the author(s) of a post (#1220) - Fixed bug where hovering over search results showed the text "{desc}" (#1156) - Added social network links for GitLab, Bluesky (#1168, #1218) diff --git a/_layouts/base.html b/_layouts/base.html index 22a1141efbc4..dc7ecbc9a562 100644 --- a/_layouts/base.html +++ b/_layouts/base.html @@ -25,12 +25,13 @@ {% include head.html %} +
+ {% include gtm_body.html %} - {% include gtm_body.html %} + {% include nav.html %} - {% include nav.html %} - - {{ content }} + {{ content }} +
{% include footer.html %} diff --git a/assets/css/beautifuljekyll.css b/assets/css/beautifuljekyll.css index 6163dc4f62fc..9a4944204ada 100644 --- a/assets/css/beautifuljekyll.css +++ b/assets/css/beautifuljekyll.css @@ -21,6 +21,9 @@ body { background-attachment: fixed; {% endif %} overflow-wrap: break-word; + min-height: 100vh; + display: grid; + grid-template-rows: 1fr auto; } p { line-height: 1.5;