Created
January 19, 2017 13:24
-
-
Save stuartbreckenridge/a68248dbea14e68ad0cc3e9e59e354b5 to your computer and use it in GitHub Desktop.
Instant Article
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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