##// END OF EJS Templates
Added noindex to the pages without unique content or user-specific ones
neko259 -
r1040:e158fb64 default
parent child Browse files
Show More
@@ -4,6 +4,7 b''
4 {% load i18n %}
4 {% load i18n %}
5
5
6 {% block head %}
6 {% block head %}
7 <meta name="robots" content="noindex">
7 <title>{{ site_name }} - {% trans 'Notifications' %} - {{ notification_username }}</title>
8 <title>{{ site_name }} - {% trans 'Notifications' %} - {{ notification_username }}</title>
8 {% endblock %}
9 {% endblock %}
9
10
@@ -6,6 +6,8 b''
6 {% load static %}
6 {% load static %}
7
7
8 {% block head %}
8 {% block head %}
9 <meta name="robots" content="noindex">
10
9 {% if tag %}
11 {% if tag %}
10 <title>{{ tag.name }} - {{ site_name }}</title>
12 <title>{{ tag.name }} - {{ site_name }}</title>
11 {% else %}
13 {% else %}
@@ -4,6 +4,7 b''
4 {% load humanize %}
4 {% load humanize %}
5
5
6 {% block head %}
6 {% block head %}
7 <meta name="robots" content="noindex">
7 <title>{% trans 'Settings' %} - {{ site_name }}</title>
8 <title>{% trans 'Settings' %} - {{ site_name }}</title>
8 {% endblock %}
9 {% endblock %}
9
10
@@ -6,6 +6,7 b''
6 {% load board %}
6 {% load board %}
7
7
8 {% block head %}
8 {% block head %}
9 <meta name="robots" content="noindex">
9 <title>{{ thread.get_opening_post.get_title|striptags|truncatewords:10 }}
10 <title>{{ thread.get_opening_post.get_title|striptags|truncatewords:10 }}
10 - {{ site_name }}</title>
11 - {{ site_name }}</title>
11 {% endblock %}
12 {% endblock %}
@@ -3,6 +3,10 b''
3 {% load board %}
3 {% load board %}
4 {% load i18n %}
4 {% load i18n %}
5
5
6 {% block head %}
7 <meta name="robots" content="noindex">
8 {% endblock %}
9
6 {% block content %}
10 {% block content %}
7 <div class="post-form-w">
11 <div class="post-form-w">
8 <div class="post-form">
12 <div class="post-form">
@@ -1,18 +1,16 b''
1 from django.core.urlresolvers import reverse
2 from django.core.exceptions import ObjectDoesNotExist
1 from django.core.exceptions import ObjectDoesNotExist
3 from django.db import transaction
4 from django.http import Http404
2 from django.http import Http404
5 from django.shortcuts import get_object_or_404, render, redirect
3 from django.shortcuts import get_object_or_404, render, redirect
6 from django.views.generic.edit import FormMixin
4 from django.views.generic.edit import FormMixin
7
5
8 from boards import utils, settings
6 from boards import utils, settings
9 from boards.forms import PostForm, PlainErrorList
7 from boards.forms import PostForm, PlainErrorList
10 from boards.models import Post, Ban
8 from boards.models import Post
11 from boards.views.banned import BannedView
12 from boards.views.base import BaseBoardView, CONTEXT_FORM
9 from boards.views.base import BaseBoardView, CONTEXT_FORM
13 from boards.views.posting_mixin import PostMixin
10 from boards.views.posting_mixin import PostMixin
14 import neboard
11 import neboard
15
12
13
16 TEMPLATE_GALLERY = 'boards/thread_gallery.html'
14 TEMPLATE_GALLERY = 'boards/thread_gallery.html'
17 TEMPLATE_NORMAL = 'boards/thread.html'
15 TEMPLATE_NORMAL = 'boards/thread.html'
18
16
General Comments 0
You need to be logged in to leave comments. Login now