Browse Source

Add meta robots tag to pages

Default is "index,follow" but we turn off indexing of tags, categories,
archives, etc.
restyle-spring-2019
Annika Backstrom 1 year ago
parent
commit
7b9ad1fee8

+ 4
- 0
themes/histrionic/templates/archives.html View File

@@ -1,5 +1,9 @@
{% extends "base.html" %}

{% block metarobots %}
<meta name="robots" value="noindex,follow">
{% endblock %}

{% block content %}
<div class="row">
<div class="cute-12-tablet">

+ 4
- 0
themes/histrionic/templates/base.html View File

@@ -15,6 +15,10 @@
{% block scripts %}
{% endblock %}

{% block metarobots %}
<meta name="robots" value="index,follow">
{% endblock %}

{% if FEED_ALL_ATOM %}
<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" />
{% endif %}

+ 5
- 0
themes/histrionic/templates/category.html View File

@@ -1,6 +1,11 @@
{% extends "base.html" %}

{% block title %}{{ category }} - {{ SITENAME }}{% endblock %}

{% block metarobots %}
<meta name="robots" value="noindex,follow">
{% endblock %}

{% block content %}

<h1>Posts categorized under: {{ category }}</h1>

+ 4
- 0
themes/histrionic/templates/index.html View File

@@ -1,5 +1,9 @@
{% extends "base.html" %}

{% block metarobots %}
<meta name="robots" value="noindex,follow">
{% endblock %}

{% block body_classes %}archive{% endblock %}

{% block content %}

+ 6
- 1
themes/histrionic/templates/tag.html View File

@@ -1,6 +1,11 @@
{% extends "base.html" %}

{% block title %}{{ tag }} - {{ SITENAME }}{% endblock %}

{% block metarobots %}
<meta name="robots" value="noindex,follow">
{% endblock %}

{% block content %}

<h1>Post tagged: {{ tag }}</h1>
@@ -11,4 +16,4 @@

{% include 'pagination.inc.html' %}

{% endblock %}
{% endblock %}

+ 6
- 1
themes/histrionic/templates/tags.html View File

@@ -1,10 +1,15 @@
{% extends "base.html" %}

{% block title %}{{ SITENAME }}{% endblock %}

{% block metarobots %}
<meta name="robots" value="noindex,follow">
{% endblock %}

{% block content %}

<h1>Tags</h1>
<ul class="tagcloud">
{% for tag in tag_cloud %}
<li class="tag-{{ tag.1 }}"><a href="{{ SITEURL }}/{{ tag.0.url }}">{{ tag.0 }}</a></li>

Loading…
Cancel
Save