-
-
Notifications
You must be signed in to change notification settings - Fork 695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serve noindex homepage copy at /-/ #2393
Comments
Documentation can go here: https://docs.datasette.io/en/latest/pages.html#top-level-index |
I just realized that dropping a |
Docs are now live here: https://docs.datasette.io/en/latest/pages.html#top-level-index
|
datasette/datasette/views/index.py Lines 155 to 157 in 9306766
There's an edge-case here: if the user has Datasette running at an alternative prefix using base_url I don't think this will work. I'll fix that if anyone ever complains about it! |
Sites like https://datasette.io/ and https://til.simonwillison.net/ run Datasette but with a custom template for the homepage. This makes them a little harder to use because there’s nowhere to go for the list of databases (I use
/-/databases
for that sometimes but it’s not very pretty).Solution: serve a copy of the homepage at
/-/
but put a<meta name="robots" content="noindex">
on it to avoid it being accidentally indexed as duplicate content.I’ll have
/-
redirect to/-/
too.The text was updated successfully, but these errors were encountered: