-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathwriting.html
77 lines (54 loc) · 1.94 KB
/
writing.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
73
74
75
76
77
---
---
{% assign tags = site.library | map: 'tags' | compact | join: ',' | split: ',' | uniq %}
{% include head.html %}
{% include googleanalytics.html %}
{% include 2024-nav.html %}
{% include writing-nav.html %}
<div class="mainlinks pv4-l mh5-l ph3">
{% include streak.html %}
{% for post in site.posts %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
{% capture this_month %}{{ post.date | date: "%B" }}{% endcapture %}
{% capture next_month %}{{ post.next.date | date: "%B" }}{% endcapture %}
{% if forloop.first %}
<div id="{{ this_year }}-ref" class="b f4 pv2">{{this_year}}</div>
{% endif %}
{% if post.draft == true %}
{% else %}
{% if forloop.first %}
<div class="f7 ttu black-70 b pt4">{{ this_month }}</div>
{% elsif this_month != next_month %}
<div class="f7 ttu black-70 b pt4">{{ this_month }}</div>
{% endif %}
<div class="flex flex-wrap w-100 pv2 justify-between f5">
<div class="w-100 w-auto-l">
<a class="link newgreen b" href="https://tomcritchlow.com{{post.url}}">{{post.title}}</a>
<br><span class="black-50 i">{{post.subtitle}}</span>
</div>
<div class="black-50 f6 tr">{{ post.date | date: "%B %-d, %Y" }}
<br><span class="black-50 f6" data-page-id="http://tomcritchlow.com{{post.url}}"><a class="link black-50" id="commentolink" href="{{ post.url }}#commento"></a></span></div>
</div>
{% endif %}
{% if forloop.last %}
{% else %}
{% if this_year != next_year %}
<div id="{{ next_year }}-ref" class="b f4 pv2">{{next_year}}</div>
{% endif %}
{% endif %}
{% endfor %}
</div>
<script>
window.commentoCustomText = function(count) {
if(count === 0) {
return "";
} else if (count === 1) {
return "⚡ 1 comment";
} else {
return "⚡ "+ count + " comments";
}
}
</script>
<script src="https://cdn.commento.io/js/count.js" data-custom-text="window.commentoCustomText"></script>
{% include 2024-footer.html %}