Skip to content

Instantly share code, notes, and snippets.

@connor
Created January 9, 2012 20:01
Show Gist options
  • Save connor/1584645 to your computer and use it in GitHub Desktop.
Save connor/1584645 to your computer and use it in GitHub Desktop.
index file using external-url
---
layout: default
title: "Blog"
date: 2011-12-29 11:34
---
<h3 class="subhead small-margins">Posts</h3>
<ul class="posts">
{% assign index = true %}
{% for post in paginator.posts %}
{% assign content = post.content %}
<li {% if !post.published %} class="pending" {% endif %}>
<span class="tk-museo-slab">{{ post.date | date: "%d %b %Y" }}</span> »
{% if post.external-url %}
<a href="{{ post.external-url }}" target="_blank">[link] {{ post.title }}</a>
{% else %}
<a href="{{ post.url }}">{{ post.title }}</a>
{% endif %}
</li>
{% endfor %}
<div class="pagination">
{% if paginator.next_page %}
<a class="prev" href="{{paginator.next_page}}">&larr; Older</a>
{% endif %}
{% if paginator.previous_page %}
<a class="next" href="{{paginator.previous_page}}">Newer &rarr;</a>
{% endif %}
</div>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment