diff --git a/planet/shell/tmpl.py b/planet/shell/tmpl.py index a99d7ae..04eb20a 100644 --- a/planet/shell/tmpl.py +++ b/planet/shell/tmpl.py @@ -256,8 +256,10 @@ def run(script, doc, output_file=None, options={}): tp.set(key, value) if output_file: + basename = os.path.basename(output_file) reluri = os.path.splitext(os.path.basename(output_file))[0] tp.set('url', urlparse.urljoin(config.link(),reluri)) + tp.set('fullurl', urlparse.urljoin(config.link(),basename)) output = open(output_file, "w") output.write(tp.process(template)) diff --git a/themes/common/rss10.xml.tmpl b/themes/common/rss10.xml.tmpl index 1652f5c..750bf4f 100644 --- a/themes/common/rss10.xml.tmpl +++ b/themes/common/rss10.xml.tmpl @@ -14,6 +14,9 @@ "/> + + " type="application/rss+xml"/> + diff --git a/themes/common/rss20.xml.tmpl b/themes/common/rss20.xml.tmpl index 1503f12..217051c 100644 --- a/themes/common/rss20.xml.tmpl +++ b/themes/common/rss20.xml.tmpl @@ -9,6 +9,9 @@ "/> + + " type="application/rss+xml"/> +