Skip to content

Commit 9f926a7

Browse files
committed
Link to Learn page on the homepage
Also use flexbox instead of `float: left` to lay out everything in a grid; it looks like this CSS was written before flexbox existed and flexbox is simpler.
1 parent f847b39 commit 9f926a7

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

assets/sass/front-page.scss

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,14 @@
1919
ul {
2020
@extend .unstyled !optional;
2121
padding-top: 24px;
22+
display: flex;
23+
flex-direction: row;
24+
flex-wrap: wrap;
25+
gap: 20px 40px;
26+
margin-bottom: 40px;
2227

2328
li {
24-
display: block;
25-
float: left;
2629
width: 280px;
27-
margin-bottom: 20px;
28-
29-
&#nav-about,
30-
&#nav-downloads {
31-
margin-right: 30px;
32-
}
33-
34-
&#nav-about,
35-
&#nav-documentation {
36-
margin-bottom: 40px;
37-
}
3830
}
3931
}
4032

layouts/partials/site-root.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,18 @@ <h3>About</h3>
99
<p>The advantages of Git compared to other source control systems.</p>
1010
</a>
1111
</li>
12+
<li id="nav-learn">
13+
<a href="{{ relURL "learn" }}">
14+
<img src="{{ relURL "images/icons/[email protected]" }}" width="74" height="74" />
15+
<h3>Learn</h3>
16+
<p>Pro Git book, videos, tutorials, and cheat sheet</p>
17+
</a>
18+
</li>
1219
<li id="nav-documentation">
13-
<a href="{{ relURL "doc" }}">
20+
<a href="{{ relURL "docs" }}">
1421
<img src="{{ relURL "images/icons/[email protected]" }}" width="74" height="74" />
1522
<h3>Documentation</h3>
16-
<p>Command reference pages, Pro Git book content, videos and other material.</p>
23+
<p>Git's reference documentation</p>
1724
</a>
1825
</li>
1926
<li id="nav-downloads">

0 commit comments

Comments
 (0)