diff options
Diffstat (limited to 'design/templates/fb-feed.xml')
-rw-r--r-- | design/templates/fb-feed.xml | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/design/templates/fb-feed.xml b/design/templates/fb-feed.xml index 471b64b..3be1e1b 100644 --- a/design/templates/fb-feed.xml +++ b/design/templates/fb-feed.xml @@ -1,6 +1,7 @@ -<?xml version="1.0"?> +{%load facebook_processor%}<?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/"> +<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"> (http://purl.org/rss/1.0/modules/content/); +<channel> <channel> <title>Luxagraf.net</title> <link>http://luxagraf.net/</link> @@ -9,11 +10,10 @@ <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 %} + <docs>http://cyber.law.harvard.edu/rss/rss.html</docs>{% for object in object_list %}{% with object.content_object as object %}{% with object.body_html|facebook_processor as body %} <item> <title>{{object.title}}</title> + <description>{{body}}</description> <content:encoded><![CDATA[ <!doctype html> <html lang="en" prefix="op: http://media.facebook.com/op#"> @@ -31,7 +31,7 @@ <time class="op-modified" dateTime="{{object.pub_date}}"></time> <address><a>luxagraf</a></address> </header> - {{object.body_html|}} + {{body|safe}} <footer> <small>©{{object.pub_date|date:"Y"}} luxagraf.net</small> </footer> @@ -42,7 +42,6 @@ <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> - {% endfor %} - </channel> - </rss> + </item>{%endwith%}{%endwith%}{% endfor %} + </channel> +</rss> |