diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-12-12 20:28:10 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-12-12 20:28:10 -0500 |
commit | 8b490a962167a7ab7642b9d56f720857513f4110 (patch) | |
tree | 2ddb3afd4b8d4b52287ef84383ec62f646332ef4 /gitsrht | |
parent | e3e6fe9a586c29f81ac9edf27353ef7670950b1c (diff) |
Prevent crawlers from indexing unlisted repos
Diffstat (limited to 'gitsrht')
-rw-r--r-- | gitsrht/templates/repo.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gitsrht/templates/repo.html b/gitsrht/templates/repo.html index 1d1fbde..0bd4d9d 100644 --- a/gitsrht/templates/repo.html +++ b/gitsrht/templates/repo.html @@ -1,4 +1,9 @@ {% extends "git.html" %} +{% block head %} +{% if repo.visibility.value =='unlisted' %} +<meta name="robots" content="noindex"> +{% endif %} +{% endblock %} {% block body %} <div class="container-fluid"> <div class="row"> |