Prevent crawlers from indexing unlisted repos
1 files changed, 5 insertions(+), 0 deletions(-) M gitsrht/templates/repo.html
M gitsrht/templates/repo.html => gitsrht/templates/repo.html +5 -0
@@ 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">