From 5bae43b46cd5dd399836f8e326ee128373c1a855 Mon Sep 17 00:00:00 2001 From: Tommy Chen Date: Sun, 3 Jun 2012 11:24:21 +0800 Subject: simplify post --- source/_includes/article.html | 40 +++++++++++++++++----------------------- 1 file changed, 17 insertions(+), 23 deletions(-) (limited to 'source/_includes/article.html') diff --git a/source/_includes/article.html b/source/_includes/article.html index a766bb7..1e1c835 100644 --- a/source/_includes/article.html +++ b/source/_includes/article.html @@ -1,25 +1,19 @@ {% if index %} -

{% if site.titlecase %}{{ post.title | titlecase }}{% else %}{{ post.title }}{% endif %}

-
- {{ content | excerpt }} - {% capture excerpted %}{{ content | has_excerpt }}{% endcapture %} - {% if excerpted == 'true' %}{{ site.excerpt_link }}{% endif %} -
-
-
{% include post/date.html %}{{ time }}
-
{% include post/categories.html %}
- {% if site.disqus_short_name and post.comments == true and site.disqus_show_comment_count == true %} - Comments - {% endif %} -
+

{% if site.titlecase %}{{ post.title | titlecase }}{% else %}{{ post.title }}{% endif %}

+
+ {{ content | excerpt }} + {% capture excerpted %}{{ content | has_excerpt }}{% endcapture %} + {% if excerpted == 'true' %}{{ site.excerpt_link }}{% endif %} +
{% else %} -

{% if site.titlecase %}{{ page.title | titlecase }}{% else %}{{ page.title }}{% endif %}

-
{{ content }}
-
-
{% include post/date.html %}{{ time }}
-
{% include post/categories.html %}
- {% if site.disqus_short_name and page.comments == true and site.disqus_show_comment_count == true %} - Comments - {% endif %} -
-{% endif %} \ No newline at end of file +

{% if site.titlecase %}{{ page.title | titlecase }}{% else %}{{ page.title }}{% endif %}

+
{{ content }}
+{% endif %} + +
+
{% include post/date.html %}{{ time }}
+
{% include post/categories.html %}
+ {% if site.disqus_short_name and site.disqus_show_comment_count == true %} + Comments + {% endif %} +
\ No newline at end of file -- cgit v1.2.3