Created
January 9, 2012 20:01
-
-
Save connor/1584645 to your computer and use it in GitHub Desktop.
index file using external-url
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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}}">← Older</a> | |
{% endif %} | |
{% if paginator.previous_page %} | |
<a class="next" href="{{paginator.previous_page}}">Newer →</a> | |
{% endif %} | |
</div> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment