-
Notifications
You must be signed in to change notification settings - Fork 197
/
index.html
119 lines (103 loc) · 4.32 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
---
title: Political News for Normal People.
layout: default
image: "/public/wtfjht-f.jpg"
redirect_from:
- "/today/"
- "/yesterday/"
seo:
name: What The Fuck Just Happened Today?
description: A sane, once-a-day update on today’s essential political news. Chronicling
the daily shock and awe since 2017.
type: NewsArticle
links:
- https://whatthefuckjusthappenedtoday.com/
- https://twitter.com/WTFJHT
- https://www.instagram.com/wtfjht/
- https://bsky.app/profile/wtfjht.bsky.social
- https://www.threads.net/@wtfjht
- https://mastodon.social/@wtfjht
- https://www.facebook.com/wtfjht
- https://github.com/mkiser/WTFJHT
---
{% include_cached email.html %}
<div class="posts">
{% 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 %}
{% for page in site.posts limit:1 %}
<article class="post">
{% if site.is_away_mode == true %}
{% include away_mode.html %}
{% endif %}
<h2 class="post-title">
<a href="{{ site.baseurl }}{{ page.url }}">
{{ page.title }}:
<span class="post-small">{{ page.description }}</span></a>
</h2>
{% 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/edit/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>
<!--
{% 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 %}
-->
<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 }}
<div><span id="todaylastyear"></span></div>
<div><span id="todaytwoyearsago"></span></div>
<div><span id="todaythreeyearsago"></span></div>
<div><span id="todayfouryearsago"></span></div>
<div><span id="todayfiveyearsago"></span></div>
<div><span id="todaysixyearsago"></span></div>
</div>
{% include_cached email.html %}
{% include social.html %}
{% include_cached pledge.html %}
</article>
</div>
<!-- pagination -->
<div class="pagination">
<div class="next-prev">
{% if page.previous.url %}
<a href="{{page.previous.url}}">« {{page.previous.title}}</a>
{% endif %}
{% if page.next.url %}
<a href="{{page.next.url}}">{{page.next.title}} »</a>
{% endif %}
</div>
</div>
{% endfor %}