Skip to content

Commit 31aa70e

Browse files
author
1138-4EB
committed
flex body, keep footer at bot
1 parent 7c68a6a commit 31aa70e

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

_layouts/default.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
33
{% include head.html %}
44
<body>
5-
{% include header.html %}
6-
{{ content }}
5+
<div class="flex">
6+
{% include header.html %}
7+
{{ content }}
8+
</div>
79
{% include footer.html %}
810
</body>
911
</html>

_sass/style.sass

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ $primary: $blue
66

77
@import "bulma/bulma"
88

9+
body
10+
display: flex
11+
min-height: 100vh
12+
flex-direction: column
13+
14+
.flex
15+
flex: 1 0 auto
16+
917
.container
1018
max-width: 960px !important
1119
width: 95%

0 commit comments

Comments
 (0)