_layouts/archive.html in jekyll-zeta-0.2.3 vs _layouts/archive.html in jekyll-zeta-0.3.0

- old
+ new

@@ -2,37 +2,16 @@ layout: default --- {%-include back_link.html-%} -<h1>{{ page.title }}</h1> +<h2>{{ page.title }}</h2> {%-assign posts = site.posts-%} {%- if posts.size > 0 -%} - -{% assign ymPre = "" %} -{% capture archive_date_format %} {{ site.theme_config.archive_date_format | default: "%Y"}}{% endcapture %} - -{% capture archive_date_titleformat %} {{ site.theme_config.archive_title_date_format | default: "%m-%d"}}{% endcapture %} -<ul class="postlistul"> -{%- for post in posts limit: include.limit -%} - {% capture ymCur %} {{post.date | date: archive_date_format}} {% endcapture %} - {% if ymCur != ymPre %} - {% if ymPre != "" %} - </ul> - {% endif %} - <li class="postlistli"><h2>{{ymCur}}</h2></li> - <ul class="postlistul"> - {% endif %} - {% assign ymPre = ymCur %} - - <li class="postlistli"> - <a href="{{ post.url | relative_url }}">{{ post.title | downcase }}</a> - <date datetime="{{post.date}}">{{- post.date | date: archive_date_titleformat }}</date> - </li> - -{%- endfor -%} -</ul> + {% include archive_list.html + collection=posts + %} {%- endif -%} \ No newline at end of file