forked from mkiser/WTFJHT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
88 lines (78 loc) · 3.3 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
---
title: Trump News Today
layout: default
image:
twitter: "/public/wtfjht-t.jpg"
facebook: "/public/wtfjht-f.jpg"
seo:
name: Trump News Today - What The Fuck Just Happened Today?
---
{% 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 page.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 %}
<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 ep = site.podcasts | 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://playmusic.app.goo.gl/?ibi=com.google.PlayMusic&isi=691797987&ius=googleplaymusic&link=https://play.google.com/music/m/I5fj7gzxpepkfvuzymxavcvok5y?t%3DWTF_Just_Happened_Today%26pcampaignid%3DMKT-na-all-co-pr-mu-pod-16">Google Podcast</a>, <a href="{{ site.baseurl }}/podcasts/index.xml">RSS</a>
</small>
{% endif %}
<div class="post-content">
{{ page.content | extlinks }}
<div><span id="todaylastyear"></span></div>
<div><span id="todaytwoyearsago"></span></div>
<div><span id="todaythreeyearsago"></span></div>
</div>
{% include_cached email.html %}
{% include social.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 %}
<div class="next-prev">
<p>Or check the <a href="{{ site.baseurl }}/archive/">archives</a></p>
</div>