/
instantfeed.xml
55 lines (55 loc) · 2.53 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
---
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>
{% 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>
<description>{{ post.description | xml_escape }}</description>
<content:encoded>
<![CDATA[
<!doctype html>
<html lang="en" prefix="op: http://media.facebook.com/op#">
<head>
<meta charset="utf-8">
<link rel="canonical" href="{{ post.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<meta property="op:markup_version" content="v1.0" />
<title>{{ post.title }}</title>
<link rel="stylesheet" title="default" href="#" />
</head>
<body>
<article>
<header>
<figure>
<img src="{{ site.url }}/{% if post.image %}img/og/posts/resized/{{ post.image }}{% else %}{{ site.og_image }}{% endif %}" />
{% if post.caption %}<figcaption class="op-vertical-bottom"><h1>{{ post.caption }}</h1></figcaption>{% endif %}
</figure>
<h1>{{ post.title }}</h1>
<time class="op-published" datetime="{{ post.date | date: "%Y-%m-%d %H:%M:%S %Z" }}">{{ post.date | date: "%b %-d, %Y" }}</time>
<h2>{% include projects.html %}</h2>
</header>
{{ post.content | replace: '<h3', '<h2' | replace: '</h3>', '</h2>' }}
<footer>
<aside><a href="{{ site.url }}/about">Learn more about this project</a>.</aside>
</footer>
</article>
</body>
</html>
]]>
</content:encoded>
</item>
{% endfor %}
</channel>
</rss>