Add noindex meta tag to stories

This commit is contained in:
2022-06-29 23:20:53 +00:00
parent ebd1ad2140
commit c80769def6
2 changed files with 12 additions and 6 deletions

View File

@@ -124,9 +124,11 @@ def story(sid):
@flask_app.route('/search')
def index():
return render_template('index.html',
title='Feed',
url='news.t0.vc',
description='Hacker News, Reddit, Lobsters, and Tildes articles rendered in reader mode')
title='Feed',
url='news.t0.vc',
description='Hacker News, Reddit, Lobsters, and Tildes articles rendered in reader mode',
robots='index',
)
@flask_app.route('/<sid>', strict_slashes=False)
@flask_app.route('/<sid>/c', strict_slashes=False)
@@ -151,9 +153,11 @@ def static_story(sid):
url = url.replace('www.', '')
return render_template('index.html',
title=story['title'],
url=url,
description=description)
title=story['title'],
url=url,
description=description,
robots='noindex',
)
http_server = WSGIServer(('', 33842), flask_app)