Better noindex
parent
75cd7f6c9b
commit
8a2e8b7833
|
@ -1,11 +1,5 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block meta %}
|
|
||||||
{% if 'page' in request.get_full_path %}
|
|
||||||
<meta name="robots" content="noindex, follow" />
|
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block body-class %}blog-site{% endblock %}
|
{% block body-class %}blog-site{% endblock %}
|
||||||
{% block html-class %}blog-site{% endblock %}
|
{% block html-class %}blog-site{% endblock %}
|
||||||
|
|
||||||
|
|
|
@ -2,12 +2,6 @@
|
||||||
|
|
||||||
{% load pagination_tags %}
|
{% load pagination_tags %}
|
||||||
|
|
||||||
{% block meta %}
|
|
||||||
{% if 'page' in request.get_full_path %}
|
|
||||||
<meta name="robots" content="noindex, follow" />
|
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block body-class %}{{ block.super }} blog-list{% endblock %}
|
{% block body-class %}{{ block.super }} blog-list{% endblock %}
|
||||||
|
|
||||||
{% block js %}
|
{% block js %}
|
||||||
|
|
|
@ -2,12 +2,6 @@
|
||||||
|
|
||||||
{% load pagination_tags %}
|
{% load pagination_tags %}
|
||||||
|
|
||||||
{% block meta %}
|
|
||||||
{% if 'page' in request.get_full_path %}
|
|
||||||
<meta name="robots" content="noindex, follow" />
|
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block body-class %}{{ block.super }}{% if user.username == 'blog' %} blog{% endif %}{% endblock %}
|
{% block body-class %}{{ block.super }}{% if user.username == 'blog' %} blog{% endif %}{% endblock %}
|
||||||
|
|
||||||
{% block page-title %}/ {% if public and not public_user %}public{% else %}{{ user.username }}{% endif %}{% if tag %} / {{ tag }}{% endif %} - {{ block.super }}{% endblock %}
|
{% block page-title %}/ {% if public and not public_user %}public{% else %}{{ user.username }}{% endif %}{% if tag %} / {{ tag }}{% endif %} - {{ block.super }}{% endblock %}
|
||||||
|
|
|
@ -201,6 +201,7 @@ def search(request, template='search/search.html', load_all=True, form_class=Mod
|
||||||
|
|
||||||
context = {
|
context = {
|
||||||
'form': form,
|
'form': form,
|
||||||
|
'has_snipts': True,
|
||||||
'page': page,
|
'page': page,
|
||||||
'paginator': paginator,
|
'paginator': paginator,
|
||||||
'query': query,
|
'query': query,
|
||||||
|
|
|
@ -10,7 +10,9 @@
|
||||||
<meta name="description" content="Long-term memory for coders. Share and store code snippets." />
|
<meta name="description" content="Long-term memory for coders. Share and store code snippets." />
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block meta %}{% endblock %}
|
{% if has_snipts and not detail and not request.blog_user %}
|
||||||
|
<meta name="robots" content="noindex, follow" />
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% compress css %}
|
{% compress css %}
|
||||||
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/bootstrap.css" />
|
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/bootstrap.css" />
|
||||||
|
|
|
@ -4,10 +4,6 @@
|
||||||
{% block html-class %}search{% endblock %}
|
{% block html-class %}search{% endblock %}
|
||||||
{% block body-class %}search static{% endblock %}
|
{% block body-class %}search static{% endblock %}
|
||||||
|
|
||||||
{% block meta %}
|
|
||||||
<meta name="robots" content="noindex, follow" />
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block js %}
|
{% block js %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
window.detail = false;
|
window.detail = false;
|
||||||
|
|
Loading…
Reference in New Issue