Skip to content

Instantly share code, notes, and snippets.

@ericclemmons
Created October 21, 2010 04:45
Show Gist options
  • Save ericclemmons/637950 to your computer and use it in GitHub Desktop.
Save ericclemmons/637950 to your computer and use it in GitHub Desktop.
Jekyll template
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>{{ page.title }} &mdash; CollegeDegrees.com</title>
</head>
<body>
{{ content }}
</body>
</html>
---
layout: default
title: Developers' Blog
---
<div id="home">
<h1>Blog Posts</h1>
<ul class="posts">
{% for post in site.posts %}
<li>
<span>{{ post.date | date_to_string }}</span>
&raquo;
<a href="{{ post.url }}">{{ post.title }}</a>
</li>
{% endfor %}
</ul>
</div>
---
layout: default
---
<h1>{{ page.title }}</h1>
<div id="post">
{{ content }}
</div>
<div id="related">
<h2>Related Posts</h2>
<ul class="posts">
{% for post in site.related_posts limit:3 %}
<li><span>{{ post.date | date_to_string }}</span> &raquo; <a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment