include sample link url, post

This commit is contained in:
Maximilian Held 2014-03-25 18:16:22 +01:00
parent db2981d253
commit b7bbf27ead
2 changed files with 15 additions and 1 deletions

View file

@ -36,7 +36,11 @@
</div>
<article>
<div class="headline-wrap">
<h1>{{ page.title }}</h1>
{% if page.link %}
<h1><a href="{{ page.link }}">{{ page.title }}</a></h1>
{% else %}
<h1><a href="{{ site.url }}{{ page.url }}" rel="bookmark" title="{{ page.title }}">{{ page.title }}</a></h1>
{% endif %}
</div><!--/ .headline-wrap -->
<div class="article-wrap">
{{ content }}

View file

@ -0,0 +1,10 @@
---
layout: post
title: "Sample Link Post"
description: "Example and code for using link posts."
tags: [sample post, link post]
link: http://mademistakes.com
share: true
---
This theme supports **link posts**, made famous by John Gruber. To use, just add `link: http://url-you-want-linked` to the post's YAML front matter and you're done.