Skip to content

Commit af34452

Browse files
committed
Setup default template and start adding content for index.
1 parent 11ca11a commit af34452

File tree

7 files changed

+59
-193
lines changed

7 files changed

+59
-193
lines changed

_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
name: Your New Jekyll Site
1+
name: Tweepy
22
markdown: redcarpet
33
pygments: true

_includes/nav-main.html

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<header class="navbar navbar-inverse navbar-fixed-top" role="banner">
2+
<div class="container">
3+
<div class="navbar-header">
4+
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
5+
<span class="icon-bar"></span>
6+
<span class="icon-bar"></span>
7+
<span class="icon-bar"></span>
8+
</button>
9+
<a class="navbar-brand" href="/">{{ site.name }}</a>
10+
</div>
11+
<div class="collapse navbar-collapse">
12+
<ul class="nav navbar-nav">
13+
<li {% if page.slug == "getting-started" %}class="active"{% endif %}>
14+
<a href="/getting-started.html">Getting started</a>
15+
</li>
16+
<li {% if page.slug == "authentication" %}class="active"{% endif %}>
17+
<a href="/authentication.html">Authentication</a>
18+
</li>
19+
</ul>
20+
</div>
21+
</div>
22+
</header>

_layouts/default.html

+11-28
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html lang="en">
33
<head>
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
66
<title>{{ page.title }}</title>
77
<meta name="viewport" content="width=device-width">
88

9+
<!-- Bootstrap CSS -->
10+
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
11+
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-theme.min.css">
12+
913
<!-- syntax highlighting CSS -->
1014
<link rel="stylesheet" href="/css/syntax.css">
1115

@@ -14,33 +18,12 @@
1418

1519
</head>
1620
<body>
21+
<!-- Main Navigation Bar -->
22+
{% include nav-main.html %}
1723

18-
<div class="container">
19-
<div class="site">
20-
<div class="header">
21-
<h1 class="title"><a href="/">{{ site.name }}</a></h1>
22-
<a class="extra" href="/">home</a>
23-
</div>
24-
25-
{{ content }}
26-
27-
<div class="footer">
28-
<div class="contact">
29-
<p>
30-
Your Name<br />
31-
What You Are<br />
32-
33-
</p>
34-
</div>
35-
<div class="contact">
36-
<p>
37-
<a href="http://github.com/yourusername/">github.com/yourusername</a><br />
38-
<a href="http://twitter.com/yourusername/">twitter.com/yourusername</a><br />
39-
</p>
40-
</div>
41-
</div>
42-
</div>
43-
</div> <!-- /container -->
24+
{{ content }}
4425

26+
<!-- Bootstrap JavaScript -->
27+
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
4528
</body>
46-
</html>
29+
</html>

authentication.html

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
layout: default
3+
title: Authentication
4+
slug: authentication
5+
---

css/main.css

+8-155
Original file line numberDiff line numberDiff line change
@@ -1,160 +1,13 @@
1-
/*****************************************************************************/
2-
/*
3-
/* Common
4-
/*
5-
/*****************************************************************************/
6-
7-
/* Global Reset */
8-
* {
9-
margin: 0;
10-
padding: 0;
11-
}
12-
13-
html, body { height: 100%; }
14-
151
body {
16-
background-color: #FFF;
17-
font: 13.34px Helvetica, Arial, sans-serif;
18-
font-size: small;
19-
text-align: center;
20-
}
21-
22-
h1, h2, h3, h4, h5, h6 {
23-
font-size: 100%; }
24-
25-
h1 { margin-bottom: 1em; }
26-
p { margin: 1em 0; }
27-
28-
a { color: #00a; }
29-
a:hover { color: #000; }
30-
a:visited { color: #a0a; }
31-
32-
/*****************************************************************************/
33-
/*
34-
/* Home
35-
/*
36-
/*****************************************************************************/
37-
ul.posts {
38-
list-style-type: none;
39-
margin-bottom: 2em;
40-
}
41-
42-
ul.posts li {
43-
line-height: 1.75em;
44-
}
45-
46-
ul.posts span {
47-
color: #aaa;
48-
font-family: Monaco, "Courier New", monospace;
49-
font-size: 80%;
50-
}
51-
52-
/*****************************************************************************/
53-
/*
54-
/* Site
55-
/*
56-
/*****************************************************************************/
57-
58-
.site {
59-
font-size: 115%;
60-
text-align: justify;
61-
width: 42em;
62-
margin: 3em auto 2em;
63-
line-height: 1.5em;
64-
}
65-
66-
.site .header a {
67-
font-weight: bold;
68-
text-decoration: none;
69-
}
70-
71-
.site .header h1.title {
72-
display: inline-block;
73-
margin-bottom: 2em;
74-
}
75-
76-
.site .header h1.title a {
77-
color: #a00;
78-
}
79-
80-
.site .header h1.title a:hover {
81-
color: #000;
82-
}
83-
84-
.site .header a.extra {
85-
color: #aaa;
86-
margin-left: 1em;
87-
}
88-
89-
.site .header a.extra:hover {
90-
color: #000;
91-
}
92-
93-
.site .meta {
94-
color: #aaa;
95-
}
96-
97-
.site .footer {
98-
font-size: 80%;
99-
color: #666;
100-
border-top: 4px solid #eee;
101-
margin-top: 2em;
102-
overflow: hidden;
103-
}
104-
105-
.site .footer .contact {
106-
float: left;
107-
margin-right: 3em;
108-
}
109-
110-
.site .footer .contact a {
111-
color: #8085C1;
112-
}
113-
114-
.site .footer .rss {
115-
margin-top: 1.1em;
116-
margin-right: -.2em;
117-
float: right;
2+
padding-top: 50px;
1183
}
1194

120-
.site .footer .rss img {
121-
border: 0;
5+
.tp-main {
6+
padding-top: 140px;
1227
}
123-
124-
/*****************************************************************************/
125-
/*
126-
/* Posts
127-
/*
128-
/*****************************************************************************/
129-
130-
/* standard */
131-
.post pre {
132-
border: 1px solid #ddd;
133-
background-color: #eef;
134-
padding: 0 .4em;
135-
}
136-
137-
.post ul, .post ol {
138-
margin-left: 1.35em;
139-
}
140-
141-
.post code {
142-
border: 1px solid #ddd;
143-
background-color: #eef;
144-
padding: 0 .2em;
145-
}
146-
147-
.post pre code {
148-
border: none;
149-
}
150-
151-
/* terminal */
152-
.post pre.terminal {
153-
border: 1px solid #000;
154-
background-color: #333;
155-
color: #FFF;
156-
}
157-
158-
.post pre.terminal code {
159-
background-color: #333;
8+
.tp-main h1 {
9+
font-size: 100px;
16010
}
11+
.tp-main .lead {
12+
font-size: 30px;
13+
}

getting-started.html

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
layout: default
3+
title: Getting Started
4+
slug: getting-started
5+
---

index.html

+7-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
---
22
layout: default
3-
title: Your New Jekyll Site
3+
title: Tweepy
44
---
55

6-
<div id="home">
7-
<h1>Blog Posts</h1>
8-
<ul class="posts">
9-
{% for post in site.posts %}
10-
<li><span>{{ post.date | date_to_string }}</span> &raquo; <a href="{{ post.url }}">{{ post.title }}</a></li>
11-
{% endfor %}
12-
</ul>
13-
</div>
6+
<main class="tp-main">
7+
<div class="container">
8+
<h1>Tweepy</h1>
9+
<p class="lead">A Python library for accessing the Twitter API.</p>
10+
</div>
11+
</main>

0 commit comments

Comments
 (0)