Skip to content

Commit 1a5794c

Browse files
committed
weixiaozhan
1 parent 572be3a commit 1a5794c

File tree

4 files changed

+334
-0
lines changed

4 files changed

+334
-0
lines changed

css/main.css

Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
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+
/*****************************************************************************/
33+
/*
34+
/* Home
35+
/*
36+
/*****************************************************************************/
37+
.posts {
38+
list-style-type: none;
39+
margin-bottom: 2em;
40+
}
41+
42+
.posts li {
43+
line-height: 1.75em;
44+
}
45+
46+
.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+
.header a {
67+
font-weight: bold;
68+
text-decoration: none;
69+
}
70+
71+
.title {
72+
display: inline-block;
73+
margin-bottom: 2em;
74+
}
75+
76+
.title a {
77+
color: #a00;
78+
}
79+
80+
.title a:hover {
81+
color: #000;
82+
}
83+
84+
.header a.extra {
85+
color: #aaa;
86+
margin-left: 1em;
87+
}
88+
89+
.header a.extra:hover {
90+
color: #000;
91+
}
92+
93+
.meta {
94+
color: #aaa;
95+
}
96+
97+
.footer {
98+
font-size: 80%;
99+
color: #666;
100+
border-top: 4px solid #eee;
101+
margin-top: 2em;
102+
overflow: hidden;
103+
}
104+
105+
.footer .contact {
106+
float: left;
107+
margin-right: 3em;
108+
}
109+
110+
.footer .contact a {
111+
color: #8085C1;
112+
}
113+
114+
.footer .rss {
115+
margin-top: 1.1em;
116+
margin-right: -.2em;
117+
float: right;
118+
}
119+
120+
.footer .rss img {
121+
border: 0;
122+
}
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;
160+
}

css/syntax.css

Lines changed: 60 additions & 0 deletions
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

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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>Your New Jekyll Site</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="site">
19+
<div class="header">
20+
<h1 class="title"><a href="/">Your New Jekyll Site</a></h1>
21+
<a class="extra" href="/">home</a>
22+
</div>
23+
24+
<div id="home">
25+
<h1>Blog Posts</h1>
26+
<ul class="posts">
27+
28+
<li><span>14 Jun 2014</span> &raquo; <a href="/update/2014/06/14/welcome-to-jekyll.html">Welcome to Jekyll!</a></li>
29+
30+
</ul>
31+
</div>
32+
33+
<div class="footer">
34+
<div class="contact">
35+
<p>
36+
Your Name<br />
37+
What You Are<br />
38+
39+
</p>
40+
</div>
41+
<div class="contact">
42+
<p>
43+
<a href="https://github.com/yourusername">github.com/yourusername</a><br />
44+
<a href="https://twitter.com/yourusername">twitter.com/yourusername</a><br />
45+
</p>
46+
</div>
47+
</div>
48+
</div>
49+
50+
</body>
51+
</html>
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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>Welcome to Jekyll!</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="site">
19+
<div class="header">
20+
<h1 class="title"><a href="/">Your New Jekyll Site</a></h1>
21+
<a class="extra" href="/">home</a>
22+
</div>
23+
24+
<h2>Welcome to Jekyll!</h2>
25+
<p class="meta">14 Jun 2014</p>
26+
27+
<div class="post">
28+
<p>You&#39;ll find this post in your <code>_posts</code> directory - edit this post and re-build (or run with the <code>-w</code> switch) to see your changes!
29+
To add new posts, simply add a file in the <code>_posts</code> directory that follows the convention: YYYY-MM-DD-name-of-post.ext.</p>
30+
31+
<p>Jekyll also offers powerful support for code snippets:</p>
32+
33+
<div class="highlight"><pre><code class="ruby"><span class="k">def</span> <span class="nf">print_hi</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
34+
<span class="nb">puts</span> <span class="s2">&quot;Hi, </span><span class="si">#{</span><span class="nb">name</span><span class="si">}</span><span class="s2">&quot;</span>
35+
<span class="k">end</span>
36+
<span class="n">print_hi</span><span class="p">(</span><span class="s1">&#39;Tom&#39;</span><span class="p">)</span>
37+
<span class="c1">#=&gt; prints &#39;Hi, Tom&#39; to STDOUT.</span>
38+
</code></pre></div>
39+
40+
<p>Check out the <a href="http://jekyllrb.com">Jekyll docs</a> for more info on how to get the most out of Jekyll. File all bugs/feature requests at <a href="https://github.com/mojombo/jekyll">Jekyll&#39;s GitHub repo</a>.</p>
41+
42+
</div>
43+
44+
45+
<div class="footer">
46+
<div class="contact">
47+
<p>
48+
Your Name<br />
49+
What You Are<br />
50+
51+
</p>
52+
</div>
53+
<div class="contact">
54+
<p>
55+
<a href="https://github.com/yourusername">github.com/yourusername</a><br />
56+
<a href="https://twitter.com/yourusername">twitter.com/yourusername</a><br />
57+
</p>
58+
</div>
59+
</div>
60+
</div>
61+
62+
</body>
63+
</html>

0 commit comments

Comments
 (0)