/
index.html
81 lines (43 loc) · 1.32 KB
/
index.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
layout: default
minPostsPerPage: 3
---
{% assign mostRecent = site.posts[0].date %}
{% assign mostRecentYear = mostRecent | date: "%Y" %}
{% assign mostRecentMonth = mostRecent | date: "%m" %}
{% assign mostRecentDay = mostRecent| date: "%d" %}
{% assign archiveYear = mostRecentYear %}
{% assign archiveMonth = mostRecentMonth %}
{% assign archiveDay = mostRecentDay %}
{% capture dailyArchive %}
{% include archive.html %}
{% endcapture %}
{% if archiveCount < page.minPostsPerPage %}
{% assign archiveDay = '' %}
{% capture monthlyArchive %}
{% include archive.html %}
{% endcapture %}
{% if archiveCount < page.minPostsPerPage %}
{% assign archiveMonth = '' %}
{% capture yearlyArchive %}
{% include archive.html %}
{% endcapture %}
{% if groupCount > 1 %}
{% assign archiveContent = yearlyArchive %}
{% else %}
{% assign archiveMonth = mostRecentMonth %}
{% assign archiveContent = monthlyArchive %}
{% endif %}
{% else %}
{% assign archiveContent = monthlyArchive %}
{% endif %}
{% else %}
{% assign archiveContent = dailyArchive %}
{% endif %}
{% assign timelineYear = archiveYear %}
{% assign timelineMonth = archiveMonth %}
{% assign timelineDay = archiveDay %}
{% include timeline.html %}
<div class="contentWrapper">
{{ archiveContent }}
</div>