-
Notifications
You must be signed in to change notification settings - Fork 194
Expand file tree
/
Copy pathindex.html
More file actions
181 lines (162 loc) · 8.48 KB
/
index.html
File metadata and controls
181 lines (162 loc) · 8.48 KB
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
---
title: Political News for Normal People.
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.
layout: default
image: "/uploads/og-image.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"
data-carousel-day="{{ page.title | remove: 'Day ' }}"
data-carousel-desc="{{ page.description | smartify | xml_escape }}"
data-carousel-date="{{ page.date | date: '%b %-d, %Y' }}"
data-carousel-midterms="{{ site.data.dashboard.dates.midterms_2026 }}"
data-carousel-presidential="{{ site.data.dashboard.dates.presidential_2028 }}"
{% if page.todayInOneSentence and page.todayInOneSentence != '' %}data-carousel-tios="{{ page.todayInOneSentence | smartify | xml_escape }}"{% endif %}>
{% if site.is_away_mode == true %}
{% include away_mode.html %}
{% endif %}
{% include_cached emailpromo.html %}
<hr>
<h1 class="post-title">
<a href="{{ site.baseurl }}{{ page.url }}">
{{ page.title }}:
<span class="post-small">{{ page.description | smartify }}</span></a>
</h1>
{% assign author = site.authors | where: 'title', page.author | first %}
<div class="post-meta">
<div class="post-meta__main">
{% if author and author.title == "Matt Kiser" %}
<span class="post-meta__author">By <a href="{{ author.url }}">{{ author.title }}</a></span>
{% elsif author %}
<span class="post-meta__author">By <a href="{{ author.url }}">{{ author.title }}</a></span>
{% endif %}
<div class="post-meta__details">
{% assign time_check = page.date | date: "%H:%M" %}
<time class="post-meta__date" datetime="{{ page.date | date_to_xmlschema }}">{% if time_check == "00:00" %}{{ page.date | date: "%b %-d, %Y" }}{% else %}{{ page.date | date: "%b %-d, %Y, %-I:%M%P" }} PT{% endif %}</time>
</div>
<p class="post-meta__read-sentence">{% include read_time_sentence.html %}</p>
</div>
<div class="post-meta__actions">
{% include audio-player-trigger.html podcast_file=page.podcast.file title=page.title description=page.description image=page.image %}
{% include social.html %}
<button type="button" class="carousel-toggle" aria-label="View as cards" title="View as cards">
{% include_cached icons.html icon="cards" %}
</button>
<div class="more-menu">
<button type="button" class="more-menu__trigger" aria-label="More options" aria-expanded="false">
{% include_cached icons.html icon="ellipsis" %}
</button>
<div class="more-menu__card" aria-hidden="true">
<a class="more-menu__option" href="https://github.com/mkiser/WTFJHT/blob/master/{{ page.path }}" target="_blank" rel="noopener">
<span class="more-menu__icon">{% include_cached icons.html icon="pencil" %}</span>
<span class="more-menu__label">Improve this article</span>
</a>
<a class="more-menu__option" href="https://github.com/mkiser/WTFJHT/commits/master/{{ page.path }}" target="_blank" rel="noopener">
<span class="more-menu__icon">{% include_cached icons.html icon="history" %}</span>
<span class="more-menu__label">Revision history</span>
</a>
{% if page.todayInOneSentence and page.todayInOneSentence != '' %}
<button type="button" class="more-menu__option" data-action="open-tios">
<span class="more-menu__icon">{% include_cached icons.html icon="cards" %}</span>
<span class="more-menu__label">Today in One Sentence</span>
</button>
{% endif %}
</div>
</div>
</div>
</div>
{% include audio-player-bar.html podcast_file=page.podcast.file %}
<hr>
{% 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 != '' %}
<div class="tios">
<span class="tios__title"><span class="tios__prefix">Today in </span><strong>One Sentence</strong><span class="tios__dot">.</span></span>
<span class="tios__divider"></span>
{% assign tios_raw = page.todayInOneSentence | smartify | strip %}{% assign tios_last = tios_raw | slice: -1 %}{% if tios_last == '.' %}{% assign tios_len = tios_raw.size | minus: 1 %}{% assign tios_text = tios_raw | truncate: tios_len, '' | replace: '; ', ' <span class="tios__pilcrow">¶</span> ' %}{% else %}{% assign tios_text = tios_raw | replace: '; ', ' <span class="tios__pilcrow">¶</span> ' %}{% endif %}<span class="tios__body">{{ tios_text }}<span class="tios__dot">.</span></span>
</div>
<hr>
{% endif %}
{{ page.content | extlinks }}
</div>
{% if page.tags and page.tags.size > 0 %}
<div class="post-tags">
{% for tag in page.tags %}
{% assign tag_words = tag | split: '-' %}
{% assign capitalized_words = '' | split: '' %}
{% for word in tag_words %}
{% assign cap_word = word | capitalize %}
{% assign capitalized_words = capitalized_words | push: cap_word %}
{% endfor %}
{% assign tag_display = capitalized_words | join: ' ' %}
<a href="/tags/{{ tag }}/" class="post-tag">{{ tag_display }}</a>
{% endfor %}
</div>
{% endif %}
{% include recent-posts.html %}
{% if page.on_this_day_links and page.on_this_day_links.size > 0 %}
<div class="historical-posts" data-on-this-day='{{ page.on_this_day_links | jsonify | xml_escape }}'>
<h3 class="historical-posts__title">On this day</h3>
{% for link in page.on_this_day_links %}
<a href="{{ link.url | absolute_url }}" class="historical-posts__item">
<span class="historical-posts__years">
{% if link.direction == "ago" %}{% if link.years_ago == 1 %}1 year ago{% else %}{{ link.years_ago }} years ago{% endif %}{% elsif link.direction == "later" %}{% assign abs_years = link.years_ago | times: -1 %}{% if abs_years == 1 %}1 year later{% else %}{{ abs_years }} years later{% endif %}{% endif %}
</span>
<span class="historical-posts__headline">{{ link.title }}: {{ link.desc }}</span>
</a>
{% endfor %}
{% assign month_name = page.date | date: "%B" | downcase %}{% assign day_num = page.date | date: "%-d" %}
<a href="/on-this-day/{{ month_name }}-{{ day_num }}/" class="historical-posts__see-all">See all {{ page.date | date: "%B" }} {{ day_num }} posts →</a>
</div>
{% endif %}
{% include audio-player-script.html podcast_file=page.podcast.file %}
</article>
</div>
{% endfor %}