Skip to content

Commit

Permalink
Starting typewriter
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali Zaidi committed Jun 5, 2014
0 parents commit cf3d23c
Show file tree
Hide file tree
Showing 15 changed files with 351 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_site
21 changes: 21 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Site settings
title: "Typewriter"
description: "So I was feeling nostalgic..."
baseurl: ""
url: "http://alixedi.github.io"

# Build settings
markdown: kramdown
permalink: pretty
highlighter: pygments

# Links
links:
- title: "About"
url: /About
- title: "Twitter"
url: http://twitter.com/alixedi
- title: "Github"
url: http://github.com/alixedi
- title: "RSS"
url: /feed.xml
5 changes: 5 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<footer class="site-footer">

My take on Typewriter - @alixedi

</footer>
13 changes: 13 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="{{ site.description }}">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<link href='http://fonts.googleapis.com/css?family=Anonymous+Pro:700' rel='stylesheet' type='text/css'>

<!-- Custom CSS -->
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
<link rel="stylesheet" href="{{ "/css/pygments.css" | prepend: site.baseurl }}">
</head>
17 changes: 17 additions & 0 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<h1 class="header" style="text-decoration: none; text-transform: lowercase;">
<a style="color: #000;" href="{{ site.baseurl }}/">{{ site.title }}</a>
</h1>

<p class="sub">
{{ site.description }}
</p>

<div class="menu">
<ul class="navlist">
{% for link in site.links %}
<li>
<a class="page-link" href="{{ link.url | prepend: site.baseurl }}">{{ link.title }}</a>
</li>
{% endfor %}
</ul>
</div>
19 changes: 19 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="en">

{% include head.html %}

<body>

<div class="container">

{% include header.html %}

{{ content }}

{% include footer.html %}

</div>

</body>
</html>
14 changes: 14 additions & 0 deletions _layouts/page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
layout: default
---
<div class="post">

<header class="post-header">
<h2>{{ page.title }}</h2>
</header>

<article class="post-content">
{{ content }}
</article>

</div>
15 changes: 15 additions & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
layout: default
---
<div class="post">

<header class="post-header">
<h1>{{ page.title }}</h1>
</header>

<article class="post-content">
{{ content }}
</article>

<p class="meta">{{ page.date | date: "%b %-d, %Y" }}</p>
</div>
24 changes: 24 additions & 0 deletions _posts/2014-05-24-welcome-to-jekyll.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
layout: post
title: "Welcome to Jekyll!"
date: 2014-05-24 23:52:38
categories: jekyll update
---

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!
To add new posts, simply add a file in the `_posts` directory that follows the convention: YYYY-MM-DD-name-of-post.ext.

Jekyll also offers powerful support for code snippets:

{% highlight ruby %}
def print_hi(name)
puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.
{% endhighlight %}

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].

[jekyll-gh]: https://github.com/jekyll/jekyll
[jekyll]: http://jekyllrb.com
11 changes: 11 additions & 0 deletions about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
layout: page
title: About
permalink: /about/
---

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/)

You can find the source code for the Jekyll new theme at: [github.com/jglovier/jekyll-new](https://github.com/jglovier/jekyll-new)

You can find the source code for Jekyll at [github.com/jekyll/jekyll](https://github.com/jekyll/jekyll)
110 changes: 110 additions & 0 deletions css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
body {
font-family: "Courier New", "Courier", monospace;
font-size: 0.8em;
background-image: url('../images/paper.png');
background-repeat: repeat;
color: #666666;
line-height:125%;
padding-top: 40px;
}

/* unvisited link */
a:link, a:visited, a:active, a:hover {
color: #000;
text-decoration: none;
}

a.page-link:link, a.page-link:visited, a.page-link:active {
font-weight: bold;
color: #C00;
text-decoration: none;
text-transform: lowercase;
}

a.page-link:hover {
border-bottom: 4px solid #C00;
}

.sub {
padding-top: 0px;
margin-top: 0px;
}

h1, h2, h3, h4, h5, h6 {
font-size: 1em;
color: #000;
}

h1 {
text-transform: uppercase;
text-decoration: underline;
font-weight: bold;
}

h2 {
text-decoration: underline;
font-weight: bold;
}

h3 {
font-weight: bold;
}

.container {
margin: 0 auto;
padding: 4em 4em;
max-width: 400px;
}

.header {
padding-bottom: 0px;
margin-bottom: 0px;
text-decoration: none;
text-transform: lowercase;
font-family: 'Anonymous Pro';
font-size: 1.5em;
padding-bottom: 10px;
}

.header > a:link, .header > a:hover, .header > a:visited, .header > a:active {
border-bottom: none;
color: #000;
}

.navlist {
padding-left: 0px;
padding-bottom: 50px;
padding-top: 10px;

}

.navlist > li {
display: inline;
list-style-type: none;
padding-right: 20px;
}

.posts {
padding-left: 0px;
}

.posts > li {
list-style-type: none;
}

.highlight {
padding: 10px 20px;
background-color: #333;
}

footer {
padding-top: 50px;
color: #999;
}

.meta {
font-size: 0.7em;
font-weight: bold;
color: #000;

}
59 changes: 59 additions & 0 deletions css/pygments.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
.hll { background-color: #49483e }
.c { color: #75715e } /* Comment */
.err { color: #960050; background-color: #1e0010 } /* Error */
.k { color: #66d9ef } /* Keyword */
.l { color: #ae81ff } /* Literal */
.n { color: #f8f8f2 } /* Name */
.o { color: #f92672 } /* Operator */
.p { color: #f8f8f2 } /* Punctuation */
.cm { color: #75715e } /* Comment.Multiline */
.cp { color: #75715e } /* Comment.Preproc */
.c1 { color: #75715e } /* Comment.Single */
.cs { color: #75715e } /* Comment.Special */
.ge { font-style: italic } /* Generic.Emph */
.gs { font-weight: bold } /* Generic.Strong */
.kc { color: #66d9ef } /* Keyword.Constant */
.kd { color: #66d9ef } /* Keyword.Declaration */
.kn { color: #f92672 } /* Keyword.Namespace */
.kp { color: #66d9ef } /* Keyword.Pseudo */
.kr { color: #66d9ef } /* Keyword.Reserved */
.kt { color: #66d9ef } /* Keyword.Type */
.ld { color: #e6db74 } /* Literal.Date */
.m { color: #ae81ff } /* Literal.Number */
.s { color: #e6db74 } /* Literal.String */
.na { color: #a6e22e } /* Name.Attribute */
.nb { color: #f8f8f2 } /* Name.Builtin */
.nc { color: #a6e22e } /* Name.Class */
.no { color: #66d9ef } /* Name.Constant */
.nd { color: #a6e22e } /* Name.Decorator */
.ni { color: #f8f8f2 } /* Name.Entity */
.ne { color: #a6e22e } /* Name.Exception */
.nf { color: #a6e22e } /* Name.Function */
.nl { color: #f8f8f2 } /* Name.Label */
.nn { color: #f8f8f2 } /* Name.Namespace */
.nx { color: #a6e22e } /* Name.Other */
.py { color: #f8f8f2 } /* Name.Property */
.nt { color: #f92672 } /* Name.Tag */
.nv { color: #f8f8f2 } /* Name.Variable */
.ow { color: #f92672 } /* Operator.Word */
.w { color: #f8f8f2 } /* Text.Whitespace */
.mf { color: #ae81ff } /* Literal.Number.Float */
.mh { color: #ae81ff } /* Literal.Number.Hex */
.mi { color: #ae81ff } /* Literal.Number.Integer */
.mo { color: #ae81ff } /* Literal.Number.Oct */
.sb { color: #e6db74 } /* Literal.String.Backtick */
.sc { color: #e6db74 } /* Literal.String.Char */
.sd { color: #e6db74 } /* Literal.String.Doc */
.s2 { color: #e6db74 } /* Literal.String.Double */
.se { color: #ae81ff } /* Literal.String.Escape */
.sh { color: #e6db74 } /* Literal.String.Heredoc */
.si { color: #e6db74 } /* Literal.String.Interpol */
.sx { color: #e6db74 } /* Literal.String.Other */
.sr { color: #e6db74 } /* Literal.String.Regex */
.s1 { color: #e6db74 } /* Literal.String.Single */
.ss { color: #e6db74 } /* Literal.String.Symbol */
.bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
.vc { color: #f8f8f2 } /* Name.Variable.Class */
.vg { color: #f8f8f2 } /* Name.Variable.Global */
.vi { color: #f8f8f2 } /* Name.Variable.Instance */
.il { color: #ae81ff } /* Literal.Number.Integer.Long */
22 changes: 22 additions & 0 deletions feed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
layout: none
title: Feed
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ site.title | xml_escape }}</title>
<description>{{ site.description | xml_escape }}</description>
<link>{{ site.url }}{{ site.baseurl }}/</link>
<atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml" />
{% for post in site.posts limit:10 %}
<item>
<title>{{ post.title | xml_escape }}</title>
<description>{{ post.content | xml_escape }}</description>
<pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
<link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
</item>
{% endfor %}
</channel>
</rss>
Binary file added images/paper.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
layout: default
title: Home
---

<div class="home">

<ul class="posts">
{% for post in site.posts %}
<li>
<h1>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</h1>
{{ post.excerpt }}
<span class="meta">{{ post.date | date: "%b %-d, %Y" }}</span>
</li>
{% endfor %}
</ul>

</div>

0 comments on commit cf3d23c

Please sign in to comment.