diff --git a/blog.py b/blog.py index c85e839..b85c047 100644 --- a/blog.py +++ b/blog.py @@ -416,8 +416,7 @@ def addurl(loc,lastmod=None,changefreq=None,priority=None): loc="%s/tag/%s"%(g_blog.baseurl, urlencode(tag.tag)) addurl(loc,None,'weekly',0.5) - -## self.response.headers['Content-Type'] = 'application/atom+xml' + self.response.headers['Content-Type'] = 'application/xml' self.render2('views/sitemap.xml',{'urlset':urls}) @@ -683,4 +682,4 @@ def main(): wsgiref.handlers.CGIHandler().run(application) if __name__ == "__main__": - main() \ No newline at end of file + main() diff --git a/plugins/googleAnalytics.py b/plugins/googleAnalytics.py index c41fc56..a5fcc66 100644 --- a/plugins/googleAnalytics.py +++ b/plugins/googleAnalytics.py @@ -17,7 +17,7 @@ def filter(self,content,*arg1,**arg2): def get(self,page): code=OptionSet.getValue("googleAnalytics_code",default="") - return '''