new, jekyll-based blog

This commit is contained in:
2012-01-02 23:15:05 -05:00
commit 33dd1812f8
16 changed files with 464 additions and 0 deletions

36
_layouts/default.html Normal file
View File

@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{% if page.title %}{{ page.title }} | {% endif %}{{ site.title }}</title>
<meta name="description" content="{{ site.description }}">
<meta name="author" content="{{ site.author }}">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<link href='http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic' rel='stylesheet' type='text/css'>
<link rel="shortcut icon" href="/favicon.ico" >
<link href="/atom.xml" rel="alternate" title="{{site.title}}" type="application/atom+xml">
</head>
<body>
<header>
<h1><a href="/">{{ site.title }}</a></h1>
<h2>{{ site.slogan }}</h1>
</header>
<nav role="navigation">
<ul class="navigation">
<li><a href="/">Home</a></li>
<li><a href="/blog/">Blog</a></li>
<li><a href="/about/">About</a></li>
</ul>
</nav>
<section id="main">
{{ content }}
</section>
<footer>
&copy; 2002-{{ site.time | date:"%Y" }} {{ site.author }}
</footer>
</body>
</html>

9
_layouts/page.html Normal file
View File

@ -0,0 +1,9 @@
---
layout: default
---
<article>
<header>
<h1>{{ page.title }}</h1>
</header>
{{ content }}
</article>

7
_layouts/post.html Normal file
View File

@ -0,0 +1,7 @@
---
layout: default
---
{% assign post=page %}
{% include post.html %}
{% include vcard.html %}

26
_layouts/tag_feed.xml Normal file
View File

@ -0,0 +1,26 @@
---
layout: nil
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title><![CDATA[{{ site.title }}]]></title>
<link href="{{ site.url }}/atom.xml" rel="self"/>
<link href="{{ site.url }}/"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ site.url }}/</id>
<author>
<name><![CDATA[{{ site.author | strip_html }}]]></name>
{% if site.email %}<email><![CDATA[{{ site.email }}]]></email>{% endif %}
</author>
{% for post in site.tags[page.tag] limit: 20 %}
<entry>
<title type="html"><![CDATA[{{ post.title | cdata_escape }}]]></title>
<link href="{{ site.url }}/{{ post.url }}"/>
<updated>{{ post.date | date_to_xmlschema }}</updated>
<id>{{ site.url }}/{{ post.id }}</id>
<content type="html"><![CDATA[{{ post.content | expand_urls: site.url | markdownify| cdata_escape }}]]></content>
</entry>
{% endfor %}
</feed>

16
_layouts/tag_index.html Normal file
View File

@ -0,0 +1,16 @@
---
layout: page
title: Posts tagged "{{ page.tag }}"
---
{% for post in site.tags[page.tag] reverse %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% unless year == this_year %}
{% assign year = this_year %}
<h3>{{ year }}</h3>
{% endunless %}
<div>
<time datetime="{{ post.date | datetime | date_to_xmlschema }}" pubdate>{{ post.date | date: "%B %d" }}</time> &mdash;
<a href="/{{ post.url }}">{{post.title}}</a>
</div>
{% endfor %}
<p><a href="/tag/{{ page.tag }}/atom.xml">subscribe</a></p>