-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes.liquid
34 lines (33 loc) · 1.06 KB
/
notes.liquid
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
---
layout: base
class: notes
---
{% assign counter = 1 %} {% for n in collections.notes %} {% assign counter = counter | plus : 1 %} {% endfor %}
<div class="notes__container" id="notes-container">
<div class="notes__header">
<h2 class="notes__title">Lecture Notes</h2>
<input type="text" class="notes__search fuzzy-search" placeholder="Search {{ counter }} entries" />
</div>
<ul class="notes__list list">
{% assign notes = collections.notes | reverse %} {% for n in notes %}
<li>
<a class="notes__item" href="{{ n.url }}">
<date class="note__date">
<span class="date-short">{{ n.data.date | date: "%m.%y" }}</span>
</date>
<span class="note__teacher">
{% assign ts = n.data.teacher | split: ","%} {% for t in ts %}
<span>{{ t }}</span>
{% endfor %}
</span>
<span class="note__venue">
<span>{{ n.data.unit }}</span>
</span>
<h3 class="note__title">
{{ n.data.title }}
</h3>
</a>
</li>
{% endfor %}
</ul>
</div>