From 5d5bc3f7fc558bf19bddde356a4b7fba230089d0 Mon Sep 17 00:00:00 2001 From: James Walker Date: Wed, 4 Jan 2012 23:20:59 -0500 Subject: [PATCH] move to a consistent post listing format --- _includes/article_list.html | 4 ++++ _layouts/tag_index.html | 5 +---- blog/index.html | 5 +---- index.html | 6 +++--- 4 files changed, 9 insertions(+), 11 deletions(-) create mode 100644 _includes/article_list.html diff --git a/_includes/article_list.html b/_includes/article_list.html new file mode 100644 index 0000000..cd1a6a0 --- /dev/null +++ b/_includes/article_list.html @@ -0,0 +1,4 @@ +
+ + {{post.title}} +
diff --git a/_layouts/tag_index.html b/_layouts/tag_index.html index 83576c1..939054e 100644 --- a/_layouts/tag_index.html +++ b/_layouts/tag_index.html @@ -8,9 +8,6 @@ title: Posts tagged "{{ page.tag }}" {% assign year = this_year %}

{{ year }}

{% endunless %} -
- — - {{post.title}} -
+{% include article_list.html %} {% endfor %}

subscribe

diff --git a/blog/index.html b/blog/index.html index 8b84a10..83a11ed 100644 --- a/blog/index.html +++ b/blog/index.html @@ -8,8 +8,5 @@ title: Blog Archive {% assign year = this_year %}

{{ year }}

{% endunless %} -
- — - {{post.title}} -
+{% include article_list.html %} {% endfor %} diff --git a/index.html b/index.html index 5a52214..298708e 100644 --- a/index.html +++ b/index.html @@ -2,9 +2,9 @@ layout: default title: striving towards mediocrity --- -{% for post in site.posts limit: 1 %} -{% assign content = post.content %} -{% include post.html %} +

recent posts

+{% for post in site.posts limit: 5 %} +{% include article_list.html %} {% endfor %} {% include vcard.html %}