1
0
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:
tiyn 2024-04-22 06:14:32 +02:00
parent a927a18e39
commit 9fd714eef3
2 changed files with 6 additions and 0 deletions

View File

@ -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
View File

@ -0,0 +1,2 @@
User-agent: *
Disallow: /static/