-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
48 lines (41 loc) · 1.33 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
---
layout: default
---
<div class="home">
<section>
<h1 class="post-title">Yearly Notes</h1>
<h4 style="margin-bottom:-1em"> <i style="color:#7F7E80">{{ site.talks_summary }}</i></h4><hr/>
{% for post in paginator.posts %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
{% if forloop.first %}
<h2 style="color:#282828">{{this_year}}</h2>
<ul style="list-style:none;">
{% endif %}
<li><a class="black" href="{{ post.url | prepend: site.baseurl }}" style="font-size:23px">{{ post.title }}</a></li>
{% if forloop.last %}
</ul>
{% else %}
{% if this_year != next_year %}
</ul>
<h2 style="color:#282828">{{next_year}}</h2>
<ul style="list-style: none;">
{% endif %}
{% endif %}
{% endfor %}
</section>
<br>
<div style="text-align:right" class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="previous">
Prev</a>
{% else %}
<span class="previous">Prev</span>
{% endif %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="next">Next</a>
{% else %}
<span class="next">Next</span>
{% endif %}
</div>
</div>