Skip to content

Commit cf3d23c

Browse files
author
Ali Zaidi
committedJun 5, 2014
Starting typewriter
0 parents  commit cf3d23c

15 files changed

+351
-0
lines changed
 

‎.gitignore

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

‎_config.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Site settings
2+
title: "Typewriter"
3+
description: "So I was feeling nostalgic..."
4+
baseurl: ""
5+
url: "http://alixedi.github.io"
6+
7+
# Build settings
8+
markdown: kramdown
9+
permalink: pretty
10+
highlighter: pygments
11+
12+
# Links
13+
links:
14+
- title: "About"
15+
url: /About
16+
- title: "Twitter"
17+
url: http://twitter.com/alixedi
18+
- title: "Github"
19+
url: http://github.com/alixedi
20+
- title: "RSS"
21+
url: /feed.xml

‎_includes/footer.html

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<footer class="site-footer">
2+
3+
My take on Typewriter - @alixedi
4+
5+
</footer>

‎_includes/head.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<head>
2+
<meta charset="utf-8">
3+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
4+
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<meta name="description" content="{{ site.description }}">
7+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
8+
<link href='http://fonts.googleapis.com/css?family=Anonymous+Pro:700' rel='stylesheet' type='text/css'>
9+
10+
<!-- Custom CSS -->
11+
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
12+
<link rel="stylesheet" href="{{ "/css/pygments.css" | prepend: site.baseurl }}">
13+
</head>

‎_includes/header.html

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<h1 class="header" style="text-decoration: none; text-transform: lowercase;">
2+
<a style="color: #000;" href="{{ site.baseurl }}/">{{ site.title }}</a>
3+
</h1>
4+
5+
<p class="sub">
6+
{{ site.description }}
7+
</p>
8+
9+
<div class="menu">
10+
<ul class="navlist">
11+
{% for link in site.links %}
12+
<li>
13+
<a class="page-link" href="{{ link.url | prepend: site.baseurl }}">{{ link.title }}</a>
14+
</li>
15+
{% endfor %}
16+
</ul>
17+
</div>

‎_layouts/default.html

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
{% include head.html %}
5+
6+
<body>
7+
8+
<div class="container">
9+
10+
{% include header.html %}
11+
12+
{{ content }}
13+
14+
{% include footer.html %}
15+
16+
</div>
17+
18+
</body>
19+
</html>

‎_layouts/page.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
layout: default
3+
---
4+
<div class="post">
5+
6+
<header class="post-header">
7+
<h2>{{ page.title }}</h2>
8+
</header>
9+
10+
<article class="post-content">
11+
{{ content }}
12+
</article>
13+
14+
</div>

‎_layouts/post.html

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
layout: default
3+
---
4+
<div class="post">
5+
6+
<header class="post-header">
7+
<h1>{{ page.title }}</h1>
8+
</header>
9+
10+
<article class="post-content">
11+
{{ content }}
12+
</article>
13+
14+
<p class="meta">{{ page.date | date: "%b %-d, %Y" }}</p>
15+
</div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
layout: post
3+
title: "Welcome to Jekyll!"
4+
date: 2014-05-24 23:52:38
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/jekyll/jekyll
24+
[jekyll]: http://jekyllrb.com

‎about.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
layout: page
3+
title: About
4+
permalink: /about/
5+
---
6+
7+
This is the base Jekyll theme. You can find out more info about customizing your Jekyll theme, as well as basic Jekyll usage documentation at [jekyllrb.com](http://jekyllrb.com/)
8+
9+
You can find the source code for the Jekyll new theme at: [github.com/jglovier/jekyll-new](https://github.com/jglovier/jekyll-new)
10+
11+
You can find the source code for Jekyll at [github.com/jekyll/jekyll](https://github.com/jekyll/jekyll)

‎css/main.css

+110
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
body {
2+
font-family: "Courier New", "Courier", monospace;
3+
font-size: 0.8em;
4+
background-image: url('../images/paper.png');
5+
background-repeat: repeat;
6+
color: #666666;
7+
line-height:125%;
8+
padding-top: 40px;
9+
}
10+
11+
/* unvisited link */
12+
a:link, a:visited, a:active, a:hover {
13+
color: #000;
14+
text-decoration: none;
15+
}
16+
17+
a.page-link:link, a.page-link:visited, a.page-link:active {
18+
font-weight: bold;
19+
color: #C00;
20+
text-decoration: none;
21+
text-transform: lowercase;
22+
}
23+
24+
a.page-link:hover {
25+
border-bottom: 4px solid #C00;
26+
}
27+
28+
.sub {
29+
padding-top: 0px;
30+
margin-top: 0px;
31+
}
32+
33+
h1, h2, h3, h4, h5, h6 {
34+
font-size: 1em;
35+
color: #000;
36+
}
37+
38+
h1 {
39+
text-transform: uppercase;
40+
text-decoration: underline;
41+
font-weight: bold;
42+
}
43+
44+
h2 {
45+
text-decoration: underline;
46+
font-weight: bold;
47+
}
48+
49+
h3 {
50+
font-weight: bold;
51+
}
52+
53+
.container {
54+
margin: 0 auto;
55+
padding: 4em 4em;
56+
max-width: 400px;
57+
}
58+
59+
.header {
60+
padding-bottom: 0px;
61+
margin-bottom: 0px;
62+
text-decoration: none;
63+
text-transform: lowercase;
64+
font-family: 'Anonymous Pro';
65+
font-size: 1.5em;
66+
padding-bottom: 10px;
67+
}
68+
69+
.header > a:link, .header > a:hover, .header > a:visited, .header > a:active {
70+
border-bottom: none;
71+
color: #000;
72+
}
73+
74+
.navlist {
75+
padding-left: 0px;
76+
padding-bottom: 50px;
77+
padding-top: 10px;
78+
79+
}
80+
81+
.navlist > li {
82+
display: inline;
83+
list-style-type: none;
84+
padding-right: 20px;
85+
}
86+
87+
.posts {
88+
padding-left: 0px;
89+
}
90+
91+
.posts > li {
92+
list-style-type: none;
93+
}
94+
95+
.highlight {
96+
padding: 10px 20px;
97+
background-color: #333;
98+
}
99+
100+
footer {
101+
padding-top: 50px;
102+
color: #999;
103+
}
104+
105+
.meta {
106+
font-size: 0.7em;
107+
font-weight: bold;
108+
color: #000;
109+
110+
}

‎css/pygments.css

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
.hll { background-color: #49483e }
2+
.c { color: #75715e } /* Comment */
3+
.err { color: #960050; background-color: #1e0010 } /* Error */
4+
.k { color: #66d9ef } /* Keyword */
5+
.l { color: #ae81ff } /* Literal */
6+
.n { color: #f8f8f2 } /* Name */
7+
.o { color: #f92672 } /* Operator */
8+
.p { color: #f8f8f2 } /* Punctuation */
9+
.cm { color: #75715e } /* Comment.Multiline */
10+
.cp { color: #75715e } /* Comment.Preproc */
11+
.c1 { color: #75715e } /* Comment.Single */
12+
.cs { color: #75715e } /* Comment.Special */
13+
.ge { font-style: italic } /* Generic.Emph */
14+
.gs { font-weight: bold } /* Generic.Strong */
15+
.kc { color: #66d9ef } /* Keyword.Constant */
16+
.kd { color: #66d9ef } /* Keyword.Declaration */
17+
.kn { color: #f92672 } /* Keyword.Namespace */
18+
.kp { color: #66d9ef } /* Keyword.Pseudo */
19+
.kr { color: #66d9ef } /* Keyword.Reserved */
20+
.kt { color: #66d9ef } /* Keyword.Type */
21+
.ld { color: #e6db74 } /* Literal.Date */
22+
.m { color: #ae81ff } /* Literal.Number */
23+
.s { color: #e6db74 } /* Literal.String */
24+
.na { color: #a6e22e } /* Name.Attribute */
25+
.nb { color: #f8f8f2 } /* Name.Builtin */
26+
.nc { color: #a6e22e } /* Name.Class */
27+
.no { color: #66d9ef } /* Name.Constant */
28+
.nd { color: #a6e22e } /* Name.Decorator */
29+
.ni { color: #f8f8f2 } /* Name.Entity */
30+
.ne { color: #a6e22e } /* Name.Exception */
31+
.nf { color: #a6e22e } /* Name.Function */
32+
.nl { color: #f8f8f2 } /* Name.Label */
33+
.nn { color: #f8f8f2 } /* Name.Namespace */
34+
.nx { color: #a6e22e } /* Name.Other */
35+
.py { color: #f8f8f2 } /* Name.Property */
36+
.nt { color: #f92672 } /* Name.Tag */
37+
.nv { color: #f8f8f2 } /* Name.Variable */
38+
.ow { color: #f92672 } /* Operator.Word */
39+
.w { color: #f8f8f2 } /* Text.Whitespace */
40+
.mf { color: #ae81ff } /* Literal.Number.Float */
41+
.mh { color: #ae81ff } /* Literal.Number.Hex */
42+
.mi { color: #ae81ff } /* Literal.Number.Integer */
43+
.mo { color: #ae81ff } /* Literal.Number.Oct */
44+
.sb { color: #e6db74 } /* Literal.String.Backtick */
45+
.sc { color: #e6db74 } /* Literal.String.Char */
46+
.sd { color: #e6db74 } /* Literal.String.Doc */
47+
.s2 { color: #e6db74 } /* Literal.String.Double */
48+
.se { color: #ae81ff } /* Literal.String.Escape */
49+
.sh { color: #e6db74 } /* Literal.String.Heredoc */
50+
.si { color: #e6db74 } /* Literal.String.Interpol */
51+
.sx { color: #e6db74 } /* Literal.String.Other */
52+
.sr { color: #e6db74 } /* Literal.String.Regex */
53+
.s1 { color: #e6db74 } /* Literal.String.Single */
54+
.ss { color: #e6db74 } /* Literal.String.Symbol */
55+
.bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
56+
.vc { color: #f8f8f2 } /* Name.Variable.Class */
57+
.vg { color: #f8f8f2 } /* Name.Variable.Global */
58+
.vi { color: #f8f8f2 } /* Name.Variable.Instance */
59+
.il { color: #ae81ff } /* Literal.Number.Integer.Long */

‎feed.xml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
layout: none
3+
title: Feed
4+
---
5+
<?xml version="1.0" encoding="UTF-8"?>
6+
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
7+
<channel>
8+
<title>{{ site.title | xml_escape }}</title>
9+
<description>{{ site.description | xml_escape }}</description>
10+
<link>{{ site.url }}{{ site.baseurl }}/</link>
11+
<atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml" />
12+
{% for post in site.posts limit:10 %}
13+
<item>
14+
<title>{{ post.title | xml_escape }}</title>
15+
<description>{{ post.content | xml_escape }}</description>
16+
<pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
17+
<link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
18+
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
19+
</item>
20+
{% endfor %}
21+
</channel>
22+
</rss>

‎images/paper.png

83.1 KB
Loading

‎index.html

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
layout: default
3+
title: Home
4+
---
5+
6+
<div class="home">
7+
8+
<ul class="posts">
9+
{% for post in site.posts %}
10+
<li>
11+
<h1>
12+
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
13+
</h1>
14+
{{ post.excerpt }}
15+
<span class="meta">{{ post.date | date: "%b %-d, %Y" }}</span>
16+
</li>
17+
{% endfor %}
18+
</ul>
19+
20+
</div>

0 commit comments

Comments
 (0)
Please sign in to comment.