diff --git a/_layouts/post-index.html b/_layouts/post-index.html index dc70107e..83b94ddf 100644 --- a/_layouts/post-index.html +++ b/_layouts/post-index.html @@ -47,8 +47,14 @@ {% endif %} {% endunless %}
-

{{ post.title }}

-

{% if post.description %}{{ post.description }}{% else %}{{ post.content | strip_html | strip_newlines | truncate: 120 }}{% endif %}

+ {% if post.link %} +

{{ post.title }}

+

{{ post.date | date: "%B %d %H:%M %Z"}}

+

{{ post.content }}

+ {% else %} +

{{ post.title }}

+

{% if post.description %}{{ post.description }}{% else %}{{ post.content | strip_html | strip_newlines | truncate: 120 }}{% endif %}

+ {% endif %}
{% endfor %} diff --git a/_layouts/post.html b/_layouts/post.html index 439f90a8..446f53af 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..f7711aab --- /dev/null +++ b/_posts/2013-08-12-sample-link-post.md @@ -0,0 +1,14 @@ +--- +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. + +> And this is how a quote looks. + +Some [link](http://www.mademistakes.com) can also be shown. \ No newline at end of file