From caeed23e766705eecae7ef17a534213c0f87fdd6 Mon Sep 17 00:00:00 2001 From: SkyArrow Date: Wed, 25 Jan 2012 01:19:10 +0800 Subject: archive, category --- source/_includes/archive_post.html | 15 ++++++++------- source/_layouts/category_index.html | 23 +++++++++++------------ source/blog/archives/index.html | 27 +++++++++++++-------------- 3 files changed, 32 insertions(+), 33 deletions(-) (limited to 'source') diff --git a/source/_includes/archive_post.html b/source/_includes/archive_post.html index 5693f95..b30e5d8 100644 --- a/source/_includes/archive_post.html +++ b/source/_includes/archive_post.html @@ -1,8 +1,9 @@ {% capture category %}{{ post.categories | size }}{% endcapture %} -

{{post.title}}

- -{% if category != '0' %} - -{% endif %} \ No newline at end of file +

{{post.title}}

+
+ {{ post.date | date: "%b %e" }} + {% include post/categories.html %} + {% if site.disqus_short_name and post.comments == true %} + 留言 + {% endif %} +
\ No newline at end of file diff --git a/source/_layouts/category_index.html b/source/_layouts/category_index.html index 85a6307..7e64ebe 100644 --- a/source/_layouts/category_index.html +++ b/source/_layouts/category_index.html @@ -1,17 +1,16 @@ --- -layout: page -footer: false +layout: default --- -
{% for post in site.categories[page.category] %} -{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %} -{% unless year == this_year %} - {% assign year = this_year %} -

{{ year }}

-{% endunless %} -
- {% include archive_post.html %} -
+
+ {% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %} + {% unless year == this_year %} + {% assign year = this_year %} +

{{ year }}

+ {% endunless %} +
+ {% include archive_post.html %} +
+
{% endfor %} -
diff --git a/source/blog/archives/index.html b/source/blog/archives/index.html index f1d9cee..043e163 100644 --- a/source/blog/archives/index.html +++ b/source/blog/archives/index.html @@ -1,18 +1,17 @@ --- -layout: page -title: Blog Archive -footer: false +layout: default +title: 文章彙整 --- -
{% for post in site.posts reverse %} -{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %} -{% unless year == this_year %} - {% assign year = this_year %} -

{{ year }}

-{% endunless %} -
- {% include archive_post.html %} -
-{% endfor %} -
+
+ {% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %} + {% unless year == this_year %} + {% assign year = this_year %} +

{{ year }}

+ {% endunless %} +
+ {% include archive_post.html %} +
+
+{% endfor %} \ No newline at end of file -- cgit v1.2.3