Skip to content

Commit e74bab8

Browse files
committed
Add a Tools page
Put on the homepage and in the sidebar Signed-off-by: Julia Evans <[email protected]>
1 parent 1c5a4ea commit e74bab8

File tree

7 files changed

+69
-3
lines changed

7 files changed

+69
-3
lines changed

content/tools/_index.html

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
section: "tools"
3+
title: "Git - Tools"
4+
url: /tools.html
5+
---
6+
7+
<div id="main">
8+
9+
<h1> Tools </h1>
10+
11+
<div class="callout icon">
12+
<a href="{{< relurl "tools/command-line">}}">
13+
<img alt="Terminal icon" aria-hidden="true" src="{{< relurl "images/icons/fa-terminal.svg">}}" >
14+
<h3> Command Line Tools </h3>
15+
</a>
16+
17+
<p>
18+
Tools to view and manipulate your Git history
19+
</p>
20+
</div>
21+
22+
<div class="callout icon">
23+
<a href="{{< relurl "tools/guis">}}">
24+
<img alt="Desktop icon" aria-hidden="true" src="{{< relurl "images/icons/fa-desktop.svg">}}" >
25+
<h3> GUIs </h3>
26+
</a>
27+
28+
<p>
29+
Graphical user interfaces and editor integrations
30+
</p>
31+
</div>
32+
33+
<div class="callout icon">
34+
<a href="{{< relurl "tools/hosting">}}">
35+
<img alt="Cloud icon" aria-hidden="true" src="{{< relurl "images/icons/fa-cloud.svg">}}" >
36+
<h3> Hosting </h3>
37+
</a>
38+
39+
<p>
40+
Git repository hosting
41+
</p>
42+
</div>
43+
</div>

layouts/partials/sidebar.html

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,27 @@
3535
</li>
3636
</ul>
3737
</li>
38+
39+
<li>
40+
<a href="{{ relURL "tools" }}"{{ if (eq $section "tools") }} class="active"{{ end }}>Tools</a>
41+
<ul {{ if (eq $section "tools") }}class="expanded"{{ end }}>
42+
<li>
43+
<a href="{{ relURL "tools/command-line" }}"{{ if (eq .Params.Subsection "command-line") }} class="active"{{ end }}>Command Line</a>
44+
</li>
45+
<li>
46+
<a href="{{ relURL "tools/guis" }}"{{ if (eq .Params.Subsection "guis") }} class="active"{{ end }}>GUIs</a>
47+
</li>
48+
<li>
49+
<a href="{{ relURL "tools/hosting" }}"{{ if (eq .Params.Subsection "hosting") }} class="active"{{ end }}>Hosting</a>
50+
</li>
51+
</ul>
52+
</li>
3853
<li>
3954
<a href="{{ relURL "docs" }}"{{ if or (eq .Params.Subsection "reference") (eq .Params.Subsection "manual") }} class="active"{{ end }}>Reference</a>
4055
</li>
4156
<li>
4257
<a href="{{ relURL "downloads" }}"{{ if (eq $section "downloads") }} class="active"{{ end }}>Downloads</a>
4358
<ul {{ if (eq $section "downloads") }}class="expanded"{{ end }}>
44-
<li>
45-
<a href="{{ relURL "downloads/guis" }}"{{ if (eq .Params.Subsection "guis") }} class="active"{{ end }}>GUI Clients</a>
46-
</li>
4759
<li>
4860
<a href="{{ relURL "downloads/logos" }}"{{ if (eq .Params.Subsection "logos") }} class="active"{{ end }}>Logos</a>
4961
</li>

layouts/partials/site-root.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ <h3>Learn</h3>
1616
<p>Pro Git book, videos, tutorials, and cheat sheet</p>
1717
</a>
1818
</li>
19+
<li>
20+
<a href="{{ relURL "tools" }}">
21+
<img src="{{ relURL "images/icons/fa-screwdriver-wrench.svg" }}" width="74" height="74" />
22+
<h3>Tools</h3>
23+
<p>Command line tools, GUIs, and hosting services</p>
24+
</a>
25+
</li>
1926
<li>
2027
<a href="{{ relURL "docs" }}">
2128
<img src="{{ relURL "images/icons/fa-book-open.svg" }}" width="74" height="74" />

static/images/icons/fa-cloud.svg

Lines changed: 1 addition & 0 deletions
Loading

static/images/icons/fa-desktop.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)