forked from heiswayi/the-plain
-
Notifications
You must be signed in to change notification settings - Fork 11
/
talks.html
42 lines (35 loc) · 933 Bytes
/
talks.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
---
layout: default
title: Talks
---
<section>
<div class="center">
<h1 class="title">Talks</h1>
</div>
<div class="divider"></div>
{% assign sorted = (site.talks | sort: date) | reverse %}
{% for post in sorted %}
{% unless post.next %}
<h3 class="code">{{ post.date | date: '%Y' }}</h3>
{% else %}
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
{% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
{% if year != nyear %}
<h3 class="code">{{ post.date | date: '%Y' }}</h3>
{% endif %}
{% endunless %}
<ul>
<li>
<div class="post-date code">
<span>{{ post.date | date: "%b %d" }}</span>
</div>
<div class="title">
<a href="{{ post.url | prepend: site.baseurl | prepend: site.url }}">
<img src="{{ post.imageurl }}" alt="" style="width: 100%;">
{{ post.title }}
</a>
</div>
</li>
</ul>
{% endfor %}
</section>