Using generic host name for atom feed.
authorJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Fri, 14 Jan 2011 14:37:53 +0000 (14:37 +0000)
committerJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Fri, 14 Jan 2011 14:37:53 +0000 (14:37 +0000)
html_templates/news.atom

index 0476dc105b7ded60579bac2033741ed9c74a2cc4..4ad07ea0a3aa4367b893f5930cc894a1ed180443 100644 (file)
@@ -1,16 +1,16 @@
 <?xml version="1.0" encoding="utf-8"?>
 <feed xmlns='http://www.w3.org/2005/Atom'>
 <id>tag:nirgal.com,2000:ais</id>
-<link rel='self' type='application/atom+xml' href='https://ais.nirgal.com/news/feed' />
-<link rel='alternate' type='text/html' href='https://ais.nirgal.com/news/' />
+<link rel='self' type='application/atom+xml' href='https://{{request.get_host}}/news/feed' />
+<link rel='alternate' type='text/html' href='https://{{request.get_host}}/news/' />
 <title>AIS news</title>
 <subtitle type='text'>AIS ship monitoring news</subtitle>
-<icon uri='https://ais.nirgal.com/aiga_water_transportation.svg' />
+<icon uri='https://{{request.get_host}}/aiga_water_transportation.svg' />
 <generator uri='https://ais.nirgal.com/svn'>AIS software</generator>
 <updated>{{ last_update|date:"Y-m-d" }}T{{ last_update|time:"h:i:s" }}Z</updated>
 <author>
     <name>Nirgal Vourgère</name>
-    <uri>https://ais.nirgal.com/</uri>
+    <uri>https://{{request.get_host}}/</uri>
     <email>jvourger@greenpeace.org</email>
 </author>