mirror of
https://github.com/tiyn/beaker-blog.git
synced 2025-03-30 22:17:47 +02:00
added robots
This commit is contained in:
parent
a927a18e39
commit
9fd714eef3
@ -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/
|
Loading…
x
Reference in New Issue
Block a user