blob: d5d8912c5cfc1ff46fd6b4d5945e9acc95c28be9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{% load gls_filters %}<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"
xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
xmlns:georss="http://www.georss.org/georss"
xmlns:media="http://search.yahoo.com/mrss/"
xmlns:fb="http://www.facebook.com/2008/fbml">
<title>{% firstof page.title "Lifestream" %}</title>
<updated>{{ page.updated|gls_hdate }}</updated>
<generator>gLifestream</generator>
<id>{{ page.taguri }}</id>
<icon>{{ page.icon }}</icon>
<author><name>{{ page.author_name }}</name></author>
<link rel="self" type="application/atom+xml" href="{{ page.site_url }}{% url 'index' %}?format=atom"/>{% if page.start %}
<link rel="previous" type="application/atom+xml" href="{{ page.site_url }}{% url 'index' %}{{ page.urlparams }}start={{ page.start }}&format=atom"/>{% endif %}
<link rel="alternate" type="text/html" href="{{ page.site_url }}{% url 'index' %}"/>
{% for hub in page.pshb_hubs %} <link rel="hub" href="{{ hub }}"/>{% endfor %}
{% for entry in entries %}
<entry>
<id>{{ entry.guid }}</id>
{% spaceless %}
{% if entry.author_name %}
<author>
<name>{{ entry.author_name }}</name>
{% if entry.author_email %}<email>{{ entry.author_email }}</email>{% endif %}
{% if entry.author_uri %}<uri>{{ entry.author_uri }}</uri>{% endif %}
</author>
{% endif %}
{% endspaceless %}
<updated>{{ entry.date_published|gls_hdate }}</updated>
<category term="{{ entry.service.cls }}"/>
<link rel="alternate" type="text/html" href="{{ entry.gls_absolute_link }}"/>
{% if entry.link_image %}<link rel="image" href="{{ entry.link_image|gls_media }}"/>{% endif %}
<title>{{ entry|gls_title:entry|striptags|gls_fix_ampersands }}</title>{% ifnotequal entry.service.display "title" %}
<content type="xhtml" xml:space="preserve">
<div xmlns="http://www.w3.org/1999/xhtml">
{{ entry|gls_content:entry|gls_fix_ampersands|safe }}
</div>
</content>
{% endifnotequal %}{{ entry|gls_mediarss:entry|gls_fix_ampersands }}{% if entry.geolat and entry.geolng %}
<georss:point>{{ entry.geolat }} {{ entry.geolng }}</georss:point>
<geo:lat>{{ entry.geolat }}</geo:lat>
<geo:long>{{ entry.geolng }}</geo:long>{% endif %}
</entry>
{% endfor %}
</feed>
|