forked from andrealeo83/doxy-netflycms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyear-archive.html
41 lines (40 loc) · 1.79 KB
/
year-archive.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
layout: category_list
title: Year Archives
add_to_menu: false
description: "Meta description for Support page"
keywords: "responsive,jekyll,minimal template"
---
<div class="topics-area bg-color1">
<div class="topics-wrapper section-spacing bminus-30">
<div class="container">
<div class="col">
{%- assign posts = site.posts -%}
{%- assign groupedByYear = posts | group_by_exp:"post","post.date | date:'%Y' " -%}
total posts: {{ posts.size }}
{%- for yearitem in groupedByYear -%}
<div class="row">
<article class="topics-service bg-color3 wow fadeIn" data-wow-duration="3s">
<header class="topics-title">
<h4 class="heading-4 text-capitalize">{{ yearitem.name }} ({{yearitem.size}})</h4>
</header>
<ul class="topics-list list-inline">
{%- for item in yearitem.items -%}
{% capture post_draft %}{{ item.draft}}{% endcapture %}
{% if post_draft == "false" %}
<li>
<date>{{ item.date | date:'%B %e'}}</date>
<span><a href="{{ item.url | relative_url}}">{{ item.title }}</a></span>
</li>
{% endif %}
{% endfor %}
</ul>
</article>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
</section>
<!-- End Topics Area -->