include sample link url, post
This commit is contained in:
parent
db2981d253
commit
b7bbf27ead
2 changed files with 15 additions and 1 deletions
|
@ -36,7 +36,11 @@
|
||||||
</div>
|
</div>
|
||||||
<article>
|
<article>
|
||||||
<div class="headline-wrap">
|
<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><!--/ .headline-wrap -->
|
||||||
<div class="article-wrap">
|
<div class="article-wrap">
|
||||||
{{ content }}
|
{{ content }}
|
||||||
|
|
10
_posts/2013-08-12-sample-link-post.md
Normal file
10
_posts/2013-08-12-sample-link-post.md
Normal 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.
|
Loading…
Reference in a new issue