diff options
author | Tommy Chen <tommy351@gmail.com> | 2012-06-03 05:50:08 +0200 |
---|---|---|
committer | Tommy Chen <tommy351@gmail.com> | 2012-06-03 05:50:08 +0200 |
commit | 8f6ae6b36604c6dcfc105d7bbfd21716373b9739 (patch) | |
tree | cddc7dabd852e2c8b550e44b5b769fed9b7d7044 /source/_includes/archive_post.html | |
parent | 5bae43b46cd5dd399836f8e326ee128373c1a855 (diff) | |
download | octopress-theme-jeyzu-8f6ae6b36604c6dcfc105d7bbfd21716373b9739.zip octopress-theme-jeyzu-8f6ae6b36604c6dcfc105d7bbfd21716373b9739.tar.gz |
simplify archive
Diffstat (limited to 'source/_includes/archive_post.html')
-rw-r--r-- | source/_includes/archive_post.html | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/source/_includes/archive_post.html b/source/_includes/archive_post.html index 8ceae91..2b006f6 100644 --- a/source/_includes/archive_post.html +++ b/source/_includes/archive_post.html @@ -1,9 +1,19 @@ -{% capture category %}{{ post.categories | size }}{% endcapture %} -<h1 class="title"><a href="{{ root_url }}{{ post.url }}">{{post.title}}</a></h1> -<div class="meta"> - <span class="date">{{ post.date | date: "%b %e" }}</span> - <span class="tags">{% include post/categories.html %}</span> - {% if site.disqus_short_name and post.comments == true %} - <span class="comments"><a href="{{ root_url }}{{ post.url }}#disqus_thread">Comments</a></span> - {% endif %} -</div>
\ No newline at end of file +{% capture date %}{{ post.date }}{% endcapture %} +{% capture this_year %}{{ date | date: "%Y" }}{% endcapture %} +{% unless year == this_year %} + {% assign year = this_year %} + {% unless forloop.first %} + </section> + {% endunless %} + <section class="archives"><h1 class="year">{{ date | date: "%Y" }}</h1> +{% endunless %} +<article> + <h1 class="title"><a href="{{ root_url }}{{ post.url }}">{{post.title}}</a></h1> + <div class="meta"> + <span class="date">{{ date | date: "%b %e" }}</span> + <span class="tags">{% include post/categories.html %}</span> + {% if site.disqus_short_name and post.comments == true and site.disqus_show_comment_count == true %} + <span class="comments"><a href="{{ root_url }}{{ post.url }}#disqus_thread">Comments</a></span> + {% endif %} + </div> +</article>
\ No newline at end of file |