-
Notifications
You must be signed in to change notification settings - Fork 4
/
news_archive.html
35 lines (31 loc) · 919 Bytes
/
news_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
---
title: News
sidebar: mydoc_sidebar
keywords: news, blog, updates, release notes, announcements
permalink: news_archive.html
toc: false
folder: news
---
<div class="home">
<div class="post-list">
<section id="archive">
<h3>This year's posts</h3>
{%for post in site.posts %}
{% unless post.next %}
<ul class="this">
{% else %}
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
{% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
{% if year != nyear %}
</ul>
<h3>{{ post.date | date: '%Y' }}</h3>
<ul class="past">
{% endif %}
{% endunless %}
<li><time>{{ post.date | date:"%d %b" }}</time><a href="{{ post.url | remove: "/"}}">{{ post.title }}</a></li>
{% endfor %}
</ul>
</section>
<hr/>
</div>
</div>