Skip to content

Commit a8d0321

Browse files
committed
initial jekyll site
1 parent 8119b44 commit a8d0321

8 files changed

+320
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_site

_config.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
name: Your New Jekyll Site
2+
pygments: true

_layouts/default.html

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
6+
<title>{{ page.title }}</title>
7+
<meta name="viewport" content="width=device-width">
8+
9+
<!-- syntax highlighting CSS -->
10+
<link rel="stylesheet" href="/css/syntax.css">
11+
12+
<!-- Custom CSS -->
13+
<link rel="stylesheet" href="/css/main.css">
14+
15+
</head>
16+
<body>
17+
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 -->
44+
45+
</body>
46+
</html>

_layouts/post.html

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
layout: default
3+
---
4+
<h2>{{ page.title }}</h2>
5+
<p class="meta">{{ page.date | date_to_string }}</p>
6+
7+
<div class="post">
8+
{{ content }}
9+
</div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
layout: post
3+
title: "Welcome to Jekyll!"
4+
date: 2013-08-05 14:58:24
5+
categories: jekyll update
6+
---
7+
8+
You'll find this post in your `_posts` directory - edit this post and re-build (or run with the `-w` switch) to see your changes!
9+
To add new posts, simply add a file in the `_posts` directory that follows the convention: YYYY-MM-DD-name-of-post.ext.
10+
11+
Jekyll also offers powerful support for code snippets:
12+
13+
{% highlight ruby %}
14+
def print_hi(name)
15+
puts "Hi, #{name}"
16+
end
17+
print_hi('Tom')
18+
#=> prints 'Hi, Tom' to STDOUT.
19+
{% endhighlight %}
20+
21+
Check out the [Jekyll docs][jekyll] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll's GitHub repo][jekyll-gh].
22+
23+
[jekyll-gh]: https://github.com/mojombo/jekyll
24+
[jekyll]: http://jekyllrb.com

css/main.css

+165
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
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+
15+
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+
table {
33+
font-size: inherit;
34+
font: 100%;
35+
}
36+
37+
/*****************************************************************************/
38+
/*
39+
/* Home
40+
/*
41+
/*****************************************************************************/
42+
ul.posts {
43+
list-style-type: none;
44+
margin-bottom: 2em;
45+
}
46+
47+
ul.posts li {
48+
line-height: 1.75em;
49+
}
50+
51+
ul.posts span {
52+
color: #aaa;
53+
font-family: Monaco, "Courier New", monospace;
54+
font-size: 80%;
55+
}
56+
57+
/*****************************************************************************/
58+
/*
59+
/* Site
60+
/*
61+
/*****************************************************************************/
62+
63+
.site {
64+
font-size: 115%;
65+
text-align: justify;
66+
width: 42em;
67+
margin: 3em auto 2em;
68+
line-height: 1.5em;
69+
}
70+
71+
.site .header a {
72+
font-weight: bold;
73+
text-decoration: none;
74+
}
75+
76+
.site .header h1.title {
77+
display: inline-block;
78+
margin-bottom: 2em;
79+
}
80+
81+
.site .header h1.title a {
82+
color: #a00;
83+
}
84+
85+
.site .header h1.title a:hover {
86+
color: #000;
87+
}
88+
89+
.site .header a.extra {
90+
color: #aaa;
91+
margin-left: 1em;
92+
}
93+
94+
.site .header a.extra:hover {
95+
color: #000;
96+
}
97+
98+
.site .meta {
99+
color: #aaa;
100+
}
101+
102+
.site .footer {
103+
font-size: 80%;
104+
color: #666;
105+
border-top: 4px solid #eee;
106+
margin-top: 2em;
107+
overflow: hidden;
108+
}
109+
110+
.site .footer .contact {
111+
float: left;
112+
margin-right: 3em;
113+
}
114+
115+
.site .footer .contact a {
116+
color: #8085C1;
117+
}
118+
119+
.site .footer .rss {
120+
margin-top: 1.1em;
121+
margin-right: -.2em;
122+
float: right;
123+
}
124+
125+
.site .footer .rss img {
126+
border: 0;
127+
}
128+
129+
/*****************************************************************************/
130+
/*
131+
/* Posts
132+
/*
133+
/*****************************************************************************/
134+
135+
/* standard */
136+
.post pre {
137+
border: 1px solid #ddd;
138+
background-color: #eef;
139+
padding: 0 .4em;
140+
}
141+
142+
.post ul, .post ol {
143+
margin-left: 1.35em;
144+
}
145+
146+
.post code {
147+
border: 1px solid #ddd;
148+
background-color: #eef;
149+
padding: 0 .2em;
150+
}
151+
152+
.post pre code {
153+
border: none;
154+
}
155+
156+
/* terminal */
157+
.post pre.terminal {
158+
border: 1px solid #000;
159+
background-color: #333;
160+
color: #FFF;
161+
}
162+
163+
.post pre.terminal code {
164+
background-color: #333;
165+
}

css/syntax.css

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
.highlight { background: #ffffff; }
2+
.highlight .c { color: #999988; font-style: italic } /* Comment */
3+
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
4+
.highlight .k { font-weight: bold } /* Keyword */
5+
.highlight .o { font-weight: bold } /* Operator */
6+
.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
7+
.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
8+
.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
9+
.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
10+
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
11+
.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
12+
.highlight .ge { font-style: italic } /* Generic.Emph */
13+
.highlight .gr { color: #aa0000 } /* Generic.Error */
14+
.highlight .gh { color: #999999 } /* Generic.Heading */
15+
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
16+
.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
17+
.highlight .go { color: #888888 } /* Generic.Output */
18+
.highlight .gp { color: #555555 } /* Generic.Prompt */
19+
.highlight .gs { font-weight: bold } /* Generic.Strong */
20+
.highlight .gu { color: #aaaaaa } /* Generic.Subheading */
21+
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
22+
.highlight .kc { font-weight: bold } /* Keyword.Constant */
23+
.highlight .kd { font-weight: bold } /* Keyword.Declaration */
24+
.highlight .kp { font-weight: bold } /* Keyword.Pseudo */
25+
.highlight .kr { font-weight: bold } /* Keyword.Reserved */
26+
.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
27+
.highlight .m { color: #009999 } /* Literal.Number */
28+
.highlight .s { color: #d14 } /* Literal.String */
29+
.highlight .na { color: #008080 } /* Name.Attribute */
30+
.highlight .nb { color: #0086B3 } /* Name.Builtin */
31+
.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
32+
.highlight .no { color: #008080 } /* Name.Constant */
33+
.highlight .ni { color: #800080 } /* Name.Entity */
34+
.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
35+
.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
36+
.highlight .nn { color: #555555 } /* Name.Namespace */
37+
.highlight .nt { color: #000080 } /* Name.Tag */
38+
.highlight .nv { color: #008080 } /* Name.Variable */
39+
.highlight .ow { font-weight: bold } /* Operator.Word */
40+
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
41+
.highlight .mf { color: #009999 } /* Literal.Number.Float */
42+
.highlight .mh { color: #009999 } /* Literal.Number.Hex */
43+
.highlight .mi { color: #009999 } /* Literal.Number.Integer */
44+
.highlight .mo { color: #009999 } /* Literal.Number.Oct */
45+
.highlight .sb { color: #d14 } /* Literal.String.Backtick */
46+
.highlight .sc { color: #d14 } /* Literal.String.Char */
47+
.highlight .sd { color: #d14 } /* Literal.String.Doc */
48+
.highlight .s2 { color: #d14 } /* Literal.String.Double */
49+
.highlight .se { color: #d14 } /* Literal.String.Escape */
50+
.highlight .sh { color: #d14 } /* Literal.String.Heredoc */
51+
.highlight .si { color: #d14 } /* Literal.String.Interpol */
52+
.highlight .sx { color: #d14 } /* Literal.String.Other */
53+
.highlight .sr { color: #009926 } /* Literal.String.Regex */
54+
.highlight .s1 { color: #d14 } /* Literal.String.Single */
55+
.highlight .ss { color: #990073 } /* Literal.String.Symbol */
56+
.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
57+
.highlight .vc { color: #008080 } /* Name.Variable.Class */
58+
.highlight .vg { color: #008080 } /* Name.Variable.Global */
59+
.highlight .vi { color: #008080 } /* Name.Variable.Instance */
60+
.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */

index.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
layout: default
3+
title: Your New Jekyll Site
4+
---
5+
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>

0 commit comments

Comments
 (0)