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.
test-fix-theme
Kevin Wallace 2022-11-17 21:35:03 -08:00 zatwierdzone przez Thomas Sileo
rodzic 3cff4e4507
commit 2151733e4f
5 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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