-
Notifications
You must be signed in to change notification settings - Fork 194
Expand file tree
/
Copy pathatom.xml
More file actions
101 lines (94 loc) · 3.78 KB
/
atom.xml
File metadata and controls
101 lines (94 loc) · 3.78 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
---
permalink: "/atom.xml"
layout:
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"
xmlns:media="http://search.yahoo.com/mrss/"
xml:lang="en-US">
<title>{{ site.title | xml_escape }}</title>
<link href="{{ site.url }}{{ site.baseurl }}/atom.xml" rel="self" type="application/atom+xml"/>
<link href="{{ site.url }}{{ site.baseurl }}/" rel="alternate" type="text/html"/>
<link rel="hub" href="https://pubsubhubbub.appspot.com/"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ site.url }}{{ site.baseurl }}/</id>
<author>
<name>{{ site.author.name }}</name>
<email>{{ site.author.email }}</email>
</author>
<rights>What The Fuck Just Happened Today? content © WTF Just Happened? LLC — CC BY-NC-SA 4.0</rights>
<icon>{{ site.url }}{{ site.baseurl }}/web-app-manifest-192x192.png?v=3</icon>
<logo>{{ site.url }}{{ site.baseurl }}/og-image.jpg?v=3</logo>
{% 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 %}
<entry>
<title>{{ post.title | smartify | xml_escape }}: {{ post.description | smartify | xml_escape }}</title>
<link href="{{ canonical }}" rel="alternate" type="text/html"/>
<published>{{ post.date | date_to_xmlschema }}</published>
<updated>{{ post.last_modified | default: post.date | date_to_xmlschema }}</updated>
<id>{{ canonical }}</id>
{% if post.image %}
<media:content url="{{ img_src }}" medium="image" />
<media:thumbnail url="{{ img_src }}" />
{% endif %}
<author>
<name>{{ post.author | default: site.author.name }}</name>
<email>{{ site.author.email }}</email>
<uri>{{ site.url }}{{ site.baseurl }}/</uri>
</author>
<summary type="html"><![CDATA[{{ summary }}]]></summary>
<content type="html" 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>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>
<p><strong>Subscribe:</strong> <a href="{{ site.url }}{{ site.baseurl }}/subscribe/">Get the Daily Update in your inbox for free</a></p>
]]></content>
</entry>
{% endfor %}
</feed>