aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/resources/layouts/rss.xml
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-09-15 01:51:30 +0300
committerGravatar Vitaly Takmazov2016-09-15 02:42:29 +0300
commitd9379351e992704c7b93ed0b74d2e1c60e166538 (patch)
tree80632d4d7d13a38f999b9cf5414c2c4f2bb52539 /juick-www/src/main/resources/layouts/rss.xml
parentf48b4f81a48745895e3e76c173ad8e63b71c55a1 (diff)
juick-www: signup/rss -> pebble
Diffstat (limited to 'juick-www/src/main/resources/layouts/rss.xml')
-rw-r--r--juick-www/src/main/resources/layouts/rss.xml38
1 files changed, 38 insertions, 0 deletions
diff --git a/juick-www/src/main/resources/layouts/rss.xml b/juick-www/src/main/resources/layouts/rss.xml
new file mode 100644
index 00000000..61dd3be8
--- /dev/null
+++ b/juick-www/src/main/resources/layouts/rss.xml
@@ -0,0 +1,38 @@
+<?xml version='1.0' encoding='utf-8'?>
+<rss version='2.0' xmlns:atom='http://www.w3.org/2005/Atom' xmlns:media='http://search.yahoo.com/mrss/'
+ xmlns:juick='http://juick.com/'>
+ <channel>
+ <atom:link href='http://rss.juick.com/{{ user.getUName() }}/blog' rel='self' type='application/rss+xml'/>
+ <title>{{ user.getUName() }} - Juick</title>
+ <link>http://juick.com/{{ user.getUName() }}/</link>
+ <description>The latest messages by @{{ user.getUName() }} at Juick</description>
+ <image>
+ <url>http://i.juick.com/a/{{ user.getUID() }}.png</url>
+ <title>{{ user.getUName() }} - Juick</title>
+ <link>http://juick.com/{{ user.getUName() }}/</link>
+ </image>
+ {% for msg in msgs %}
+ <item>
+ <link>http://juick.com/{{ msg.getUser().getUName() }}/{{ msg.getMID() }}</link>
+ <guid>http://juick.com/{{ msg.getUser().getUName() }}/{{ msg.getMID() }}</guid>
+ <title><![CDATA[@{{ msg.getUser().getUName() }}: {% for tag in msg.Tags %} *{{ tag }}{% endfor %}]]></title>
+ <description><![CDATA[{{ msg.getText() | raw }}]]></description>
+ <pubDate>{{ sdfRSS.format(msg.getDate()) }}</pubDate>
+ <comments>http://juick.com/{{ msg.getUser().getUName() }}/{{ msg.getMID() }}</comments>
+ {% for tag in msg.Tags %}
+ <category>{{ tag }}</category>
+ {% endfor %}
+ {% if msg.AttachmentType is not empty %}
+ {% if msg.AttachmentType == "jpg" %}
+ <media:content url='http://i.juick.com/photos-1024/{{ msg.getMID() }}.jpg' type='image/jpeg'/>
+ <media:thumbnail url='http://i.juick.com/ps/{{ msg.getMID() }}.jpg'/>
+ {% elseif msg.AttachmentType == "png" %}
+ <media:content url='http://i.juick.com/photos-1024/{{ msg.getMID() }}.png' type='image/png'/>
+ <media:thumbnail url='http://i.juick.com/ps/{{ msg.getMID() }}.png'/>
+ {% endif %}
+ {% endif %}
+ <juick:user uid='{{ msg.getUser().getUID() }}'/>
+ </item>
+ {% endfor %}
+ </channel>
+</rss> \ No newline at end of file