diff --git a/app.py b/app.py index a86eba4..cf64f91 100644 --- a/app.py +++ b/app.py @@ -3,6 +3,7 @@ Module to contain all the project's Flask server plumbing. """ import datetime +import flask from json import dumps from flask import Flask, make_response, render_template, request @@ -55,5 +56,11 @@ def about(): def developers(): return render_template("developers.html") +@app.route("/robots.txt") +@app.route("/sitemap.xml") +@app.route("/favicon.ico") +def static_from_root(): + return flask.send_from_directory(app.static_folder, request.path[1:]) + if __name__ == "__main__": app.run(debug=True) diff --git a/static/img/favicon.ico b/static/img/favicon.ico new file mode 100644 index 0000000..530e238 Binary files /dev/null and b/static/img/favicon.ico differ diff --git a/static/robots.txt b/static/robots.txt new file mode 100644 index 0000000..e9e6fd4 --- /dev/null +++ b/static/robots.txt @@ -0,0 +1,3 @@ +User-agent: * +Disallow: /search.json +Sitemap: http://www.bitshift.it/sitemap.xml diff --git a/static/sitemap.xml b/static/sitemap.xml new file mode 100644 index 0000000..ff8ccbf --- /dev/null +++ b/static/sitemap.xml @@ -0,0 +1,16 @@ + + + + + http://bitshift.it/ + monthly + + + http://bitshift.it/about + monthly + + + http://bitshift.it/developers + monthly + + diff --git a/templates/layout.html b/templates/layout.html index f718334..d85be6f 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -16,6 +16,7 @@ + {{ assets.tag("main.css") }} = block head