-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnotes.html
48 lines (45 loc) · 1.44 KB
/
notes.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
title: Recent notes
---
<ul class="notes">
{% assign notes = site.notes | sort: "date" | reverse %}
{% for note in notes limit: 100 %}
<li class="note">
<div class="note-heading" style="display: flex; justify-content: space-between; align-items: center;;">
<div>
<a href="{{ note.url }}" class="monospace">
<h2 class="text"><u>{{ note.date | date: "%B %e, %Y" }}</u></h2>
</a>
</div>
<a href="https://github.com/ssdr/site/edit/master/{{ note.path }}" class="monospace" tabindex="-1" aria-hidden="true"> </a>
</div>
{{ note.content | markdownify }}
</li>
{% endfor %}
{% for note in site.data.notes limit: 100 %}
<li class="note">
<div class="note-heading" style="display: flex; justify-content: space-between; align-items: center;;">
<div>
<a href="{{ note.url }}" class="monospace">
<h2 class="text"><u>{{ note.date | date: "%B %e, %Y" }}</u></h2>
</a>
</div>
</div>
{{ note.content | markdownify }}
</li>
{% endfor %}
</ul>
{% if notes.size > 100 %}
<hr>
<p class="desc">Only the most recent 100 notes are shown.</p>
{% for note in notes %}
{% assign id = note.date | date: "%Y%m%d%I%M" %}
<a class="note" id="t{{id}}" href="{{ note.url }}" hidden></a>
{% endfor %}
<script>
if (window.location.hash) {
document.querySelector(document.location.hash)?.click()
}
</script>
{% endif %}