diff options
author | luxagraf <sng@luxagraf.net> | 2016-03-09 08:47:07 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2016-03-09 08:47:07 -0500 |
commit | 0e96ea0803a55db75ecfe323cc43ededcc50c72c (patch) | |
tree | aeed0e1762f87a5cb5dba4e04cfa69bfb36e0645 | |
parent | cfa3b7f8960b6e1969f79852c6331509e9909aa3 (diff) |
Started work on facebook instant articles feed
-rw-r--r-- | design/templates/fb-feed.xml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/design/templates/fb-feed.xml b/design/templates/fb-feed.xml new file mode 100644 index 0000000..e27b60d --- /dev/null +++ b/design/templates/fb-feed.xml @@ -0,0 +1,47 @@ +<?xml version="1.0"?> +<!-- RSS generated by luxagraf.net on Sun, 28 Feb 2016 02:11:10 GMT --> +<rss version="2.0" xmlns:source="http://source.smallpict.com/2014/07/12/theSourceNamespace.html" xmlns:content="http://purl.org/rss/1.0/modules/content/"> + <channel> + <title>Luxagraf.net</title> + <link>http://luxagraf.net/</link> + <description>Walk Slowly</description> + <pubDate>Sat, 27 Feb 2016 22:15:06 GMT</pubDate> + <lastBuildDate>Sun, 28 Feb 2016 02:11:10 GMT</lastBuildDate> + <language>en-us</language> + <generator>luxagraf.net</generator> + <docs>http://cyber.law.harvard.edu/rss/rss.html</docs> + <cloud domain="rpc.rsscloud.io" port="5337" path="/pleaseNotify" registerProcedure="" protocol="http-post" /> + {% for object in object_list %} + <item> + <title>{{object.title}}</title> + <content:encoded><![CDATA[ + <!doctype html> + <html lang="en" prefix="op: http://media.facebook.com/op#"> + <head> + <meta charset="utf-8"> + <meta property="op:markup_version" content="v1.0"> + <meta property="fb:article_style" content="default"> + <link rel="canonical" href="https://luxagraf.net{{object.get_absolute_url}}"> + </head> + <body> + <article> + <header> + <h1>{{object.title}}</h1> + <time class="op-published" datetime="2016-02-17T19:11:17.905Z"></time> + <time class="op-modified" dateTime="2016-02-17T19:35:25.271Z"></time> + <address><a>luxagraf</a></address> + </header> + {{object.body_markdown|process for Facebook}} #wrap images in figure tags + <footer> + <small>©{%now|date:"Y"%} luxagraf.net</small> + </footer> + </article> + </body> + </html> + ]]></content:encoded> + <pubDate>Wed, 17 Feb 2016 19:11:17 GMT</pubDate> + <link>https://luxagraf.net{{object.get_absolute_url}}</link> + <guid>https://luxagraf.net{{object.get_absolute_url}}</guid> + </item> + </channel> + </rss> |