forked from mkiser/WTFJHT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstantfeed.xml
76 lines (73 loc) · 3.23 KB
/
instantfeed.xml
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
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ site.title | xml_escape }}</title>
<description>{{ site.description | xml_escape }}</description>
<link>{{ site.url }}{{ site.baseurl }}/</link>
<atom:link href="{{ "/instantfeed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml" />
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ site.url }}</id>
<author>
<name>{{ site.owner.name }}</name>
</author>
{% for post in site.posts limit:10 %}
<item>
<title>{{ post.title | xml_escape }}</title>
<link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
<pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
<author>{{ site.owner.name }}</author>
{% if post.summaryfeed and post.excerpt %}
<description>{{ post.excerpt | xml_escape }}</description>
{% else %}
<description>{{ post.content | xml_escape }}</description>
{% endif %}
<content>
<![CDATA[
<!doctype html>
<html lang="en" prefix="op: http://media.facebook.com/op#">
<head>
<meta charset="utf-8">
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<link rel="canonical" href="{{ post.url | prepend: site.baseurl | prepend: site.url }}">
<meta property="op:markup_version" content="v1.0">
</head>
<body>
<article>
<header>
<h1>{{ post.title | xml_escape }}</h1>
{% if post.imagefeature %}
<figure>
<img src="{{ post.imagefeature }}" alt=" {{ post.title }} ">
<figcaption>{{ post.title }}</figcaption>
</figure>
{% else %}
<figure>
<img src="{{ site.baseurl | prepend: site.url }}/images/sitelogo_640x492.png" alt=" {{ post.title }} ">
<figcaption>{{ post.title }}</figcaption>
</figure>
{% endif %}
<time class="op-published" dateTime="{{ post.date | date: "%Y-%m-%d %H:%M:%S %Z" }}">{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</time>
<time class="op-modified" dateTime="{{ post.modified | date: "%Y-%m-%d %H:%M:%S %Z" }}">{{ post.modified }}</time>
</header>
{% if post.instantfeedback %}
{{ post.content | replace: '<figure>', '<figure data-feedback="fb:likes">' }}
{% else %}
{{ post.content }}
{% endif %}
<footer>
<aside>TK</aside>
<small>TK</small>
</footer>
</article>
</body>
</html>
]]>
</content>
</item>
{% endfor %}
</channel>
</rss>