-
Notifications
You must be signed in to change notification settings - Fork 194
Expand file tree
/
Copy pathrss.xml
More file actions
105 lines (97 loc) · 4.09 KB
/
rss.xml
File metadata and controls
105 lines (97 loc) · 4.09 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
---
permalink: "/rss.xml"
layout:
---
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>{{ site.title | xml_escape }}</title>
<link>{{ site.url }}{{ site.baseurl }}/</link>
<atom:link rel="self" type="application/rss+xml" href="{{ site.url }}{{ site.baseurl }}/rss.xml" />
<atom:link rel="hub" href="https://pubsubhubbub.appspot.com/"/>
<description>{{ site.description | xml_escape }}</description>
<language>en-us</language>
<copyright>What The Fuck Just Happened Today site content by WTF Just Happened? LLC is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</copyright>
<pubDate>{{ site.time | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
<lastBuildDate>{{ site.time | date:"%a, %d %b %Y %T %z" }}</lastBuildDate>
<managingEditor>{{ site.author.email }} ({{ site.author.name }})</managingEditor>
<webMaster>{{ site.author.email }} ({{ site.author.name }})</webMaster>
<category>politics</category>
<image>
<url>{{ site.url }}{{ site.baseurl }}/web-app-manifest-512x512.png?v=3</url>
<title>{{ site.title | xml_escape }}</title>
<link>{{ site.url }}{{ site.baseurl }}/</link>
</image>
{% for post in site.posts limit:50 %}
{% assign canonical = site.url | append: site.baseurl | append: post.url %}
{% assign tios = post.todayInOneSentence %}
{% assign summary = tios
| default: post.description
| default: post.excerpt
| strip_html | strip | smartify
| truncatewords: 60 %}
{% assign img_src = site.url | append: site.baseurl | append: post.image %}
<item>
<title>{{ post.title | smartify | xml_escape }}: {{ post.description | smartify | xml_escape }}</title>
<link>{{ canonical }}</link>
<guid isPermaLink="true">{{ canonical }}</guid>
{% if post.image %}
<media:content url="{{ img_src }}" medium="image" />
<media:thumbnail url="{{ img_src }}" />
{% endif %}
<author>{{ site.author.email }} ({{ site.author.name }})</author>
<pubDate>{{ post.date | date:"%a, %d %b %Y %T %z" }}</pubDate>
<category>politics</category>
<description><![CDATA[{{ summary }}]]></description>
<content:encoded xml:base="{{ site.url }}{{ site.baseurl }}/"><![CDATA[
{% if post.image %}
<p><img src="{{ img_src }}" alt="{{ post.title | xml_escape }}" /></p>
{% endif %}
{% if site.is_away_mode == true %}
{% include away_mode.html %}
{% endif %}
{% if tios and tios != '' %}
<p><em><strong>Today in one sentence</strong>: {{ tios | smartify }}</em></p>
<hr>
{% endif %}
{{ post.content | replace: ']]>', ']]]]><![CDATA[>' }}
{% if post.years_ago_links %}
<hr>
<ul>
{% for link in post.years_ago_links %}
{% capture label %}
{% if link.years_ago == 1 %}
Today last year:
{% elsif link.years_ago == 2 %}
Two years ago today:
{% elsif link.years_ago == 3 %}
Three years ago today:
{% elsif link.years_ago == 4 %}
Four years ago today:
{% elsif link.years_ago == 5 %}
Five years ago today:
{% elsif link.years_ago == 6 %}
Six years ago today:
{% elsif link.years_ago == 7 %}
Seven years ago today:
{% elsif link.years_ago == 8 %}
Eight years ago today:
{% else %}
{{ link.years_ago }} years ago today:
{% endif %}
{% endcapture %}
<li><strong>{{ label | strip }}</strong> <a href="{{ link.url | absolute_url }}">{{ link.title }}: {{ link.desc }}</a></li>
{% endfor %}
</ul>
{% endif %}
<hr>
<p><strong>Subscribe:</strong> <a href="{{ site.url }}{{ site.baseurl }}/subscribe/">Get the Daily Update in your inbox for free</a></p>
<p><strong>Support today’s essential newsletter and resist the daily shock and awe:</strong> <a href="{{ site.url }}{{ site.baseurl }}/membership">Become a member</a></p>
]]></content:encoded>
</item>
{% endfor %}
</channel>
</rss>