-
Notifications
You must be signed in to change notification settings - Fork 3
/
archive.html
43 lines (41 loc) · 1.59 KB
/
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
42
43
---
layout: page
title: Archive
permalink: /archive/
---
<div class="archive">
<p>
Please note that this page is auto-synced and it may not always be exhaustive.
Please visit our forums at <a href="https://forum.chennaiastronomyclub.org/">forum.chennaiastronomyclub.org</a> to know the latest events.
</p>
<div class="timeline" id="timeline">
{% assign postsByYearSorted = site.data.imported.topics | sort: 'created_at' | reverse %}
{% assign postsByYear = postsByYearSorted | group_by_exp:"post", "post.created_at | date: '%Y'" %}
{% for year in postsByYear %}
<div class="archive-title">
<h4 class="archive-year">{{ year.name }}</h4>
</div>
<ul>
{% for post in year.items %}
<li>
<span>{{ post.created_at | date: "%b %-d" }}</span> ~ <i class="fa fa-angle-right"></i> <a href="https://forum.chennaiastronomyclub.org/t/{{ post.slug }}">{{ post.title }}</a>
</li>
{% endfor %}
</ul>
{% endfor %}
{% assign postsByYearSorted = site.posts | sort: 'date' | reverse %}
{% assign postsByYear = postsByYearSorted | group_by_exp:"post", "post.date | date: '%Y'" %}
{% for year in postsByYear %}
<div class="archive-title">
<h4 class="archive-year">{{ year.name }}</h4>
</div>
<ul>
{% for post in year.items %}
<li>
<span>{{ post.date | date: "%b %-d" }}</span> ~ <i class="fa fa-angle-right"></i> <a href="{{ post.url }}">{{ post.title }}</a>
</li>
{% endfor %}
</ul>
{% endfor %}
</div>
</div>