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 '''

Google Anslytics

+ return '''

Google Analytics

Analytics Code:

diff --git a/static/images/favicon.ico b/static/images/favicon.ico index 093c196..7d52f09 100644 Binary files a/static/images/favicon.ico and b/static/images/favicon.ico differ diff --git a/static/robots.txt b/static/robots.txt index c5da5d9..f478a93 100644 --- a/static/robots.txt +++ b/static/robots.txt @@ -1,6 +1,6 @@ User-agent: * Crawl-delay: 10 - +Sitemap: http://www.doitwithdata.com.au/sitemap.xml Disallow: /admin/ Disallow: /rpc/ Disallow: /myadmin/ diff --git a/static/sitemap.xsl b/static/sitemap.xsl index 145fbc7..01dc8cd 100644 --- a/static/sitemap.xsl +++ b/static/sitemap.xsl @@ -107,4 +107,4 @@ - \ No newline at end of file + diff --git a/views/rss.xml b/views/rss.xml index 4ee29d9..c956a1c 100644 --- a/views/rss.xml +++ b/views/rss.xml @@ -31,13 +31,13 @@ 相关阅读 +

Related

{%endif%} -

本文网址:{{blog.baseurl}}/{{entry.link|escape}}

+

URL:{{blog.baseurl}}/{{entry.link|escape}}

]]>
{{ blog.feedurl }}/comments {{entry.commentcount}} diff --git a/views/sitemap.xml b/views/sitemap.xml index b362e04..1f6bf56 100644 --- a/views/sitemap.xml +++ b/views/sitemap.xml @@ -1,6 +1,6 @@ - - - + + + {% spaceless %} {% for url in urlset %}