mirror of
https://github.com/tiyn/beaker-blog.git
synced 2025-04-02 15:37:46 +02:00
added robots
This commit is contained in:
parent
a927a18e39
commit
9fd714eef3
@ -121,6 +121,10 @@ def entry(path):
|
|||||||
def feed_re():
|
def feed_re():
|
||||||
return redirect(url_for("feed"))
|
return redirect(url_for("feed"))
|
||||||
|
|
||||||
|
@app.route("/robots.txt")
|
||||||
|
def robots():
|
||||||
|
return render_template("robots.txt")
|
||||||
|
|
||||||
|
|
||||||
@app.route("/feed")
|
@app.route("/feed")
|
||||||
def 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