Skip to content
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commit ed0fa4a

Browse files
committed
make nav dynamic
1 parent 4a6991a commit ed0fa4a

4 files changed

Lines changed: 37 additions & 64 deletions

File tree

_layouts/default.html

Lines changed: 6 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -42,55 +42,12 @@
4242
<div class="sidebar-shell">
4343
<div class="sidebar-module">
4444
<ul>
45-
<li>
46-
<h3><a href="p/general.html">General API Info</a></h3>
47-
<span class="spacer"></span>
48-
</li>
49-
<li>
50-
<h3><a href="p/users.html">User API</a></h3>
51-
<span class="spacer"></span>
52-
</li>
53-
<li>
54-
<h3><a href="p/orgs.html">Organization API</a></h3>
55-
<span class="spacer"></span>
56-
</li>
57-
<li>
58-
<h3><a href="p/pulls.html">Pull Request API</a></h3>
59-
<span class="spacer"></span>
60-
</li>
61-
<li>
62-
<h3><a href="p/issues.html">Issues API</a></h3>
63-
<span class="spacer"></span>
64-
</li>
65-
<li>
66-
<h3><a href="p/gist.html">Gist API</a></h3>
67-
<span class="spacer"></span>
68-
</li>
69-
<li>
70-
<h3><a href="p/oauth.html">OAuth Info</a></h3>
71-
<span class="spacer"></span>
72-
</li>
73-
<li>
74-
<h3><a href="p/repo.html">Repository API</a></h3>
75-
<span class="spacer"></span>
76-
</li>
77-
<li>
78-
<h3><a href="p/commits.html">Commit API</a></h3>
79-
<span class="spacer"></span>
80-
</li>
81-
<li>
82-
<h3><a href="p/object.html">Object API</a></h3>
83-
<span class="spacer"></span>
84-
</li>
85-
<li>
86-
<h3><a href="p/network.html">Network API</a></h3>
87-
<span class="spacer"></span>
88-
</li>
89-
<li>
90-
<h3><a href="p/libraries.html">GitHub Libraries</a></h3>
91-
<span class="spacer"></span>
92-
</li>
93-
</ul>
45+
{% for post in site.posts reversed %}
46+
<li>
47+
<h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
48+
<span class="spacer"></span>
49+
</li>
50+
{% endfor %}
9451
</div> <!-- /sidebar-module -->
9552
</div><!-- /sidebar-shell -->
9653

File renamed without changes.

css/style.css

Lines changed: 30 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
body {
2+
font: 13px helvetica,arial,freesans,clean,sans-serif;
3+
line-height: 175%;
4+
background-color: #fff;
5+
color: #000;
6+
}
7+
18
a {
29
color: #4183C4;
310
text-decoration: none;
@@ -8,22 +15,30 @@ a:active, a:hover {
815
text-decoration:underline;
916
}
1017

11-
#welcome h1 {
12-
padding: 20px;
13-
text-align: center;
14-
background: #447e40;
15-
color: #fff;
16-
}
17-
18-
h2 { background: #ddd; text-align: center; padding: 4px; }
19-
20-
#welcome p { font-size: 1.3em; color: #444; text-align:center;}
18+
h1, h2, h3, h4, h5, h6 {font-weight:bold;}
2119

2220
.info, .fork { padding: 10px; }
2321
.content { font-size: 1.2em; }
2422
.content h3 { background: #dfd; font-size: 1.7em; padding: 6px 2px; }
2523

26-
pre { padding: 20px; background: #ffd; font-size: 0.9em; }
24+
pre {
25+
background-color: #444;
26+
color: #fff;
27+
font: 12px Monaco,"Courier New","DejaVu Sans Mono","Bitstream Vera Sans Mono",monospace !important;
28+
display: block;
29+
-webkit-border-radius: 3px;
30+
-moz-border-radius: 3px;
31+
border-radius: 3px;
32+
-moz-background-clip: padding;
33+
-webkit-background-clip: padding-box;
34+
background-clip: padding-box;
35+
border: 2px solid #DEDEDE;
36+
position: relative;
37+
padding: 10px;
38+
text-shadow: none;
39+
background-image: none;
40+
filter: none;
41+
}
2742

2843
#links { padding: 10px; }
2944

@@ -361,20 +376,21 @@ a.logo {
361376
color: #666;
362377
}
363378

364-
#content h1 {
379+
#content h2 {
365380
font-size: 20px;
366381
border-bottom: 1px solid #cccccc;
367382
padding: .5em 0;
368383
margin: 0 0 1em;
384+
color: #333;
369385
}
370386

371-
#content h2 {
387+
#content h3 {
372388
font-size: 16px;
373389
color: #666;
374390
margin: 2em auto 1em;
375391
}
376392

377-
#content h3 {
393+
#content h4 {
378394
font-size: 14px;
379395
color: #333;
380396
margin: 1.5em 0 .5em;

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
---
55

66
<div id="welcome">
7-
<h1>Welcome to the GitHub Developer site</h1>
7+
<h2>Welcome to the GitHub Developer site</h2>
88
<p>
99
Resources on using the official GitHub API v2. This site contains documentation on the major API sections and libraries you can use to make use of GitHub with your programs and scripts.
1010
Check out <a href="http://developer.github.com/v3/">API v3</a> for the latest API documentation.

0 commit comments

Comments
 (0)