Skip to content

Instantly share code, notes, and snippets.

@enovav
Created July 19, 2011 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enovav/1093596 to your computer and use it in GitHub Desktop.
Save enovav/1093596 to your computer and use it in GitHub Desktop.
Blog Template Selection for "Why I Switched To Jekyll"
---
layout: default
title: Henry Mercer
---
{% for post in site.posts %}
{% capture cmonth %}{{ post.date | date: "%B" }}{% endcapture %}
{% unless lmonth == cmonth %}
{% unless forloop.first %}</ul>{% endunless %}
<h3>{{ cmonth }} {{ post.date | date: "%Y" }}</h3>
<ul class="archive">
{% assign lmonth = cmonth %}
{% endunless %}
{% if post.layout == 'link' %}
<li><span class="time">{{ post.date | date: "%d" }}</span> <a href="{{ post.link_url }}">{{ post.title }}</a> <a href="{{ post.url }}" class="arch_permalink">&#8734;</a></li>
{% else %}
<li><span class="time">{{ post.date | date: "%d" }}</span> <a href="{{ post.url }}" class="innerlink">{{ post.title }}</a></li>
{% endif %}
{% endfor %}
</ul>
---
layout: default
---
<div class="post">
<h1 class="ptitle">{{ page.title }}</h1>
<div class="body">
{{ content }}
</div>
<p class="meta"><span>{{ page.date | date: "%d %B %Y" }}</span> <span><a href="{{ page.url }}">&#8734;</a></span></p>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment