Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typo #17

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions blog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})


Expand Down Expand Up @@ -683,4 +682,4 @@ def main():
wsgiref.handlers.CGIHandler().run(application)

if __name__ == "__main__":
main()
main()
2 changes: 1 addition & 1 deletion plugins/googleAnalytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def filter(self,content,*arg1,**arg2):

def get(self,page):
code=OptionSet.getValue("googleAnalytics_code",default="")
return '''<h3>Google Anslytics</h3>
return '''<h3>Google Analytics</h3>
<form action="" method="post">
<p>Analytics Code:</p>
<textarea name="code" style="width:500px;height:100px">%s</textarea>
Expand Down
Binary file modified static/images/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion static/robots.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
User-agent: *
Crawl-delay: 10

Sitemap: http://www.doitwithdata.com.au/sitemap.xml
Disallow: /admin/
Disallow: /rpc/
Disallow: /myadmin/
2 changes: 1 addition & 1 deletion static/sitemap.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@
</body>
</html>
</xsl:template>
</xsl:stylesheet>
</xsl:stylesheet>
4 changes: 2 additions & 2 deletions views/rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
<description><![CDATA[{{entry.excerpt|escape}}]]></description>
<content:encoded><![CDATA[{{entry.content|safe}}
{%if entry.relateposts%}
<h4>相关阅读</h4>
<h4>Related</h4>
<ul>
{%for post in entry.relateposts%}
<li><a href="{{blog.baseurl}}/{{post.link|escape}}">{{post.title|escape}}</a></li>
{%endfor%}
</ul>{%endif%}
<p>本文网址:<a href="{{blog.baseurl}}/{{entry.link|escape}}">{{blog.baseurl}}/{{entry.link|escape}}</a></p>
<p>URL:<a href="{{blog.baseurl}}/{{entry.link|escape}}">{{blog.baseurl}}/{{entry.link|escape}}</a></p>
]]></content:encoded>
<wfw:commentRss>{{ blog.feedurl }}/comments</wfw:commentRss>
<slash:comments>{{entry.commentcount}}</slash:comments>
Expand Down
6 changes: 3 additions & 3 deletions views/sitemap.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="{{blog.baseurl}}/static/sitemap.xsl"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<?xml version='1.0' encoding='UTF-8' ?>
<?xml-stylesheet type='text/xsl' href='static/sitemap.xsl' ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" >
{% spaceless %}
{% for url in urlset %}
<url>
Expand Down