diff --git a/_layouts/post.html b/_layouts/post.html index 06d8bccb..b0eb7c2c 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -36,7 +36,11 @@
-

{{ page.title }}

+ {% if page.link %} +

{{ page.title }}

+ {% else %} +

{{ page.title }}

+ {% endif %}
{{ content }} diff --git a/_posts/2013-08-12-sample-link-post.md b/_posts/2013-08-12-sample-link-post.md new file mode 100644 index 00000000..b9db0eea --- /dev/null +++ b/_posts/2013-08-12-sample-link-post.md @@ -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. \ No newline at end of file