]> oss.titaniummirror.com Git - webber.git/commitdiff
google_sitemap.py: don't put the source files into the sitemap, use
authorHolger Schurig <hs4233@mail.mn-solutions.de>
Mon, 5 Jul 2010 18:56:12 +0000 (20:56 +0200)
committerHolger Schurig <hs4233@mail.mn-solutions.de>
Mon, 5 Jul 2010 18:56:12 +0000 (20:56 +0200)
the generated output filename instead

plugins/google_sitemap.py

index 68fb548d84825e994173459e016681f0c42bcfc7..e039e21d31a7eca278c436ff100cb2e033442868 100644 (file)
@@ -62,7 +62,7 @@ def sitemap_scan(params):
 
        #print file.sitemap_priority, file.sitemap_changefreq, file.rel_path
        f.write('<url>\n')
-       f.write('   <loc>http://%s/%s</loc>\n' % (file.main_url, file.rel_path))
+       f.write('   <loc>http://%s/%s</loc>\n' % (file.main_url, file.out_path))
        f.write('   <lastmod>%s</lastmod>\n' % time.strftime( "%Y-%m-%d", time.localtime(file.mtime)) )
        f.write('   <changefreq>%s</changefreq>\n' % file.sitemap_changefreq)
        f.write('   <priority>%s</priority>\n' % file.sitemap_priority)