-
Notifications
You must be signed in to change notification settings - Fork 197
/
index.html
155 lines (137 loc) · 5.35 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
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
---
title: Political News for Normal People.
layout: default
image: "/public/wtfjht-f.jpg"
redirect_from:
- "/today/"
- "/yesterday/"
- "/all/"
- "/quiz/"
- "/meta/t-shirts/"
- "/random/"
seo:
name: What The Fuck Just Happened Today?
description: Your essential guide to the shock and awe in national politics. A sane,
once-a-day newsletter helping normal people make sense of the news.
type: NewsArticle
links:
- https://whatthefuckjusthappenedtoday.com/
- https://twitter.com/WTFJHT
- https://www.instagram.com/wtfjht/
- https://bsky.app/profile/whatthefuckjusthappenedtoday.com
- https://www.threads.net/@wtfjht
- https://mastodon.social/@wtfjht
- https://www.facebook.com/wtfjht
- https://github.com/mkiser/WTFJHT
---
<div class="posts">
{% comment %}
{% assign now = site.time | date: '%Y-%m-%d' %}
{% assign note = site.notes.last %}
{% assign notedate = note.date | date: '%Y-%m-%d' %}
{% assign lastpost = site.posts.first.date | date: '%Y-%m-%d' %}
{% if note.is_promoted == true %}
{% include note.html %}
{% elsif now == notedate and notedate > lastpost %}
{% include note.html %}
{% endif %}
{% endcomment %}
{% for page in site.posts limit:1 %}
<article class="post">
{% if site.is_away_mode == true %}
{% include away_mode.html %}
{% endif %}
<div style="padding: 1rem;border: 1px solid black;">
{% include_cached emailpromo.html %}
{% include_cached email.html %}
</div>
<hr>
<h1 class="post-title">
<a href="{{ site.baseurl }}{{ page.url }}">
{{ page.title }}:
<span class="post-small">{{ page.description }}</span></a>
</h1>
{% assign author = site.authors | where: 'title', page.author | first %}
{% if author and author.title == "Matt Kiser" %}
<div class="byline">By <a href="{{ author.url }}">{{ author.title }}</a>, Founder of WTF Just Happened Today?</div>
{% elsif author %}
<div class="byline">By <a href="{{ author.url }}">{{ author.title }}</a></div>
{% endif %}
<div class="post-date">
<time datetime="{{ page.date | date_to_xmlschema }}">
{{ page.date | date: "%-m/%-d/%Y" }} {% include read_time.html %}
</time>
<div>
<small>
<i class="fa fa-pencil" aria-hidden="true"></i> <a href="https://github.com/mkiser/WTFJHT/blob/master/{{ page.path }}" target="_blank">Improve this article</a> <i class="fa fa-history" aria-hidden="true"></i> <a href="https://github.com/mkiser/WTFJHT/commits/master/{{ page.path }}" target="_blank">Revision history</a>
</small>
</div>
</div>
{% comment %}
<!--
{% assign episodes = site.podcasts | reverse %}
{% assign ep = episodes | where: 'post', page.title | first %}
{% if ep %}
<div class="pod">
<audio src="{{ site.cloudfront_url }}{{ ep.file }}" preload="none" />
</div>
<small class="post-date pod-subscribe" style="margin-top: -2em; color: #9a9a9a;">
Subscribe for free: <a href="https://itunes.apple.com/us/podcast/wtf-just-happened-today/id1206537023?mt=2">Apple Podcast</a>, <a href="https://open.spotify.com/show/5AjVGcr9p8LZFOjJKOw4b3?si=3bkunuqCT2-GltqAEhX9pA">Spotify</a>, <a href="https://podcasts.google.com/feed/aHR0cHM6Ly93aGF0dGhlZnVja2p1c3RoYXBwZW5lZHRvZGF5LmNvbS9wb2RjYXN0cy9pbmRleC54bWw">Google Podcast</a>, <a href="{{ site.baseurl }}/podcasts/index.xml">RSS</a>
</small>
{% endif %}
-->
{% endcomment %}
<div class="post-content">
{% if page.todayInOneSentence and page.todayInOneSentence != '' %}
<p style="padding: 1em;margin: 0 1em 2em 1em;background-color: rgba(49, 49, 49, 0.03);font-size: 1rem;" class="tios">
<em><strong>Today in one sentence</strong>: {{ page.todayInOneSentence }}</em>
</p>
<hr>
{% endif %}
{{ page.content | extlinks }}
<hr>
<div class="pagination">
<div class="next-prev">
{% if page.previous.url %}
<a href="{{page.previous.url}}">« Previous edition</a>
{% endif %}
</div>
</div>
{% include social.html %}
<hr>
<div class="historical-posts">
{% if page.years_ago_links %}
{% for link in page.years_ago_links %}
<div>
{% if link.years_ago == 1 %}
<strong>Last year today:</strong>
{% elsif link.years_ago == 2 %}
<strong>Two years ago today:</strong>
{% elsif link.years_ago == 3 %}
<strong>Three years ago today:</strong>
{% elsif link.years_ago == 4 %}
<strong>Four years ago today:</strong>
{% elsif link.years_ago == 5 %}
<strong>Five years ago today:</strong>
{% elsif link.years_ago == 6 %}
<strong>Six years ago today:</strong>
{% elsif link.years_ago == 7 %}
<strong>Seven years ago today:</strong>
{% elsif link.years_ago == 8 %}
<strong>Eight years ago today:</strong>
{% endif %}
<a href="{{ link.url }}">{{ link.title }}: {{ link.desc }}</a>
</div>
{% endfor %}
{% endif %}
</div>
<hr>
</div>
<div style="padding: 1rem;border: 1px solid black;">
{% include_cached emailpromo.html %}
{% include_cached email.html %}
</div>
{% include_cached pledge.html %}
</article>
</div>
{% endfor %}