Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Instant Article
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>{{ site.name | xml_escape }}</title>
<link>{{ site.url }}</link>
<description>
{% if site.seodescription %}{{ site.seodescription | xml_escape }}{% endif %}
</description>
<language>en-GB</language>
<lastBuildDate>{{ site.time | date_to_xmlschema }}</lastBuildDate>
{% for post in site.posts %}
{% if post.instant %}
<item>
<title>{{ post.title | xml_escape }}</title>
<link>{{ site.url }}{{ post.url }}</link>
<guid isPermaLink="false">{{ post.identifier }}</guid>
<pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
<modDate>{{ post.last_modified_at | date: "%a, %d %b %Y %H:%M:%S %z" }}</modDate>
<author>{{ post.feedauthor }}</author>
<description>
{% if post.excerpt %}
{{ post.excerpt | xml_escape }}
{% else %}
{{ post.description | xml_escape }}
{% endif %}
</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="{{ site.url }}{{ post.url }}">
<meta property="op:markup_version" content="v1.0">
</head>
<body>
<article>
<header>
<figure>
<img src="{{ post.image }}" />
<figcaption>Cover Image</figcaption>
</figure>
<h3 class="op-kicker">
{{ post.excerpt }}
</h3>
</header>
{{ post.content | cdata_escape }}
<footer>
<!—- Article footer goes here -->
</footer>
</article>
</body>
</html>
]]>
</content:encoded>
</item>
{% endif %}
{% endfor %}
</channel>
</rss>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment