Add robots meta tags on pages in robots.txt

Useful when app is at a non-root path and we're not handling top-level
/robots.txt requests.
main
Kevin Wallace 2022-11-17 21:35:03 -08:00 committed by Thomas Sileo
parent 3cff4e4507
commit 2151733e4f
5 changed files with 7 additions and 0 deletions

View File

@ -3,6 +3,7 @@
{% block head %} {% block head %}
<title>{{ local_actor.display_name }}'s followers</title> <title>{{ local_actor.display_name }}'s followers</title>
<meta name="robots" content="noindex, nofollow">
{% endblock %} {% endblock %}
{% block content %} {% block content %}

View File

@ -3,6 +3,7 @@
{% block head %} {% block head %}
<title>{{ local_actor.display_name }}'s follows</title> <title>{{ local_actor.display_name }}'s follows</title>
<meta name="robots" content="noindex, nofollow">
{% endblock %} {% endblock %}
{% block content %} {% block content %}

View File

@ -1,5 +1,8 @@
{%- import "utils.html" as utils with context -%} {%- import "utils.html" as utils with context -%}
{% extends "layout.html" %} {% extends "layout.html" %}
{% block head %}
<meta name="robots" content="noindex, nofollow">
{% endblock %}
{% block main_tag %} class="main-flex"{% endblock %} {% block main_tag %} class="main-flex"{% endblock %}
{% block content %} {% block content %}
<div class="centered"> <div class="centered">

View File

@ -3,6 +3,7 @@
{% block head %} {% block head %}
<title>Remote follow {{ local_actor.display_name }}</title> <title>Remote follow {{ local_actor.display_name }}</title>
<meta name="robots" content="noindex, nofollow">
{% endblock %} {% endblock %}
{% block content %} {% block content %}

View File

@ -3,6 +3,7 @@
{% block head %} {% block head %}
<title>Interact from your instance</title> <title>Interact from your instance</title>
<meta name="robots" content="noindex, nofollow">
{% endblock %} {% endblock %}
{% block content %} {% block content %}