mirror of
https://github.com/tiyn/beaker-blog.git
synced 2025-10-13 19:31:16 +02:00
added robots
This commit is contained in:
@@ -121,6 +121,10 @@ def entry(path):
|
||||
def feed_re():
|
||||
return redirect(url_for("feed"))
|
||||
|
||||
@app.route("/robots.txt")
|
||||
def robots():
|
||||
return render_template("robots.txt")
|
||||
|
||||
|
||||
@app.route("/feed")
|
||||
def feed():
|
||||
|
2
src/templates/robots.txt
Normal file
2
src/templates/robots.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
User-agent: *
|
||||
Disallow: /static/
|
Reference in New Issue
Block a user