Skip to content

Commit

Permalink
Added first draft of sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
tooxie committed Nov 21, 2013
1 parent 66828dd commit 4ddbb3f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions blatt/www/app.py
Expand Up @@ -20,6 +20,13 @@ def home():
return render_template('publication_list.html')


@app.route('/sitemap.xml')
def sitemap():
# TODO: NotImplementedError

return render_template('sitemap.xml', pages=[])


@app.route('/about/')
def about():
return render_template('about.html')
Expand Down
10 changes: 10 additions & 0 deletions blatt/www/templates/sitemap.xml
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for page in pages %}
<url>
<loc>{{ page.url|safe }}</loc>
<lastmod>{{ page.lastmod }}</lastmod>
<changefreq>{{ page.changefreq }}</changefreq>
</url>
{% endfor %}
</urlset>

0 comments on commit 4ddbb3f

Please sign in to comment.