X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=plugins%2Fgoogle_sitemap.py;h=68fb548d84825e994173459e016681f0c42bcfc7;hb=4890d5778a6e64d9b9ce39b9ef542b014871079c;hp=0db3df5b9d5e59210ec2942a429fac506ad7b723;hpb=6c2d3df3ff956481cacfee43276fd23a5fb872aa;p=webber.git diff --git a/plugins/google_sitemap.py b/plugins/google_sitemap.py index 0db3df5..68fb548 100644 --- a/plugins/google_sitemap.py +++ b/plugins/google_sitemap.py @@ -36,8 +36,14 @@ def write_initial(params): def sitemap_scan(params): global f file = params.file + + # Ignore non-pages if not file.has_key("linktitle"): return + # Ignore hidden pages + if file.has_key("hide") and file.hide: + return + if f is None: write_initial(params) @@ -59,7 +65,7 @@ def sitemap_scan(params): f.write(' http://%s/%s\n' % (file.main_url, file.rel_path)) f.write(' %s\n' % time.strftime( "%Y-%m-%d", time.localtime(file.mtime)) ) f.write(' %s\n' % file.sitemap_changefreq) - f.write(' %s\n' % file.sitemap_priority) + f.write(' %s\n' % file.sitemap_priority) f.write('\n')