Skip to content

Instantly share code, notes, and snippets.

@gmontard
Created October 13, 2016 12:29
Show Gist options
  • Save gmontard/2c45946bec1c97592dadc704301d1984 to your computer and use it in GitHub Desktop.
Save gmontard/2c45946bec1c97592dadc704301d1984 to your computer and use it in GitHub Desktop.
Jekyll export to Medium
---
layout: none
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:excerpt="http://wordpress.org/export/1.2/excerpt/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:wp="http://wordpress.org/export/1.2/">
<channel>
<title>{{ site.name }}</title>
<link>{{ site.url }}</link>
<description>{{ site.description | xml_escape }}</description>
<pubDate/>
<language/>
<wp:wxr_version>1.2</wp:wxr_version>
<wp:base_site_url>{{ site.url }}</wp:base_site_url>
<wp:base_blog_url>{{ site.url }}</wp:base_blog_url>
<wp:author>
<wp:author_login>{{ site.owner.name }}</wp:author_login>
<wp:author_email>{{ site.owner.email }}</wp:author_email>
<wp:author_display_name><![CDATA[{{ site.owner.name }}]]></wp:author_display_name>
<wp:author_first_name><![CDATA[]]></wp:author_first_name>
<wp:author_last_name><![CDATA[]]></wp:author_last_name>
</wp:author>
<generator>{{ site.url }}</generator>
<image>
<url>{{ site.url }}/images/site-logo.png</url>
<title>{{ site.name }}</title>
<link>{{ site.url }}</link>
</image>
{% for post in site.posts %}
<item>
<title><![CDATA[{{post.title}}]]></title>
<link>{% if post.link %}{{ post.link }}{% else %}{{ site.url }}{{ post.url }}{% endif %}</link>
<pubDate>{{ post.date | date_to_xmlschema }}</pubDate>
<dc:creator>{{ site.owner.name }}</dc:creator>
<guid/>
<description>{{ post.description }}</description>
<content:encoded><![CDATA[{{ post.content | markdown}}]]></content:encoded>
<excerpt:encoded><![CDATA[]]></excerpt:encoded>
<wp:post_id>{{ post.id }}</wp:post_id>
<wp:post_date>{{ post.date | date_to_xmlschema }}</wp:post_date>
<wp:post_date_gmt>{{ post.date | date_to_xmlschema }}</wp:post_date_gmt>
<wp:post_name/>
{% assign tags = post.tags | split: ' ' %}
{% for tag in tags %}
<category domain="post_tag" nicename="{{tag | slugify}}"><![CDATA[{{tag}}]]></category>
{% endfor %}
<wp:status>publish</wp:status>
<wp:post_parent>0</wp:post_parent>
<wp:menu_order>0</wp:menu_order>
<wp:post_type>post</wp:post_type>
<wp:post_password/>
<wp:is_sticky/>
</item>
{% endfor %}
</channel>
</rss>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment