Skip to content

Commit 0f95755

Browse files
committed
fix: added meta robots: noindex, nofollow to changelog, forms and page revisions
This was brought up in #133. Removing the changelog and forms from search indices makes sense in general. Adding the meta tag to pages with a specific revision helps to make sure that traffic coming from search enginges is directed to the most recent version of a page.
1 parent a716b9c commit 0f95755

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

otterwiki/templates/changelog.html

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{# vim: set et ts=8 sts=4 sw=4 ai: #}
22
{% extends "wiki.html" %}
3+
{%block head %}
4+
{{ super() }}
5+
<meta name="robots" content="noindex, nofollow"/>
6+
{% endblock %}
37
{% block content %}
48
<div class="w-full mw-full p-0 clearfix">
59
<h2 class="float-left">Changelog</h2>

otterwiki/templates/form.html

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{# vim: set et ts=8 sts=4 sw=4 ai: #}
22
{% extends "wiki.html" %}
3+
{%block head %}
4+
{{ super() }}
5+
<meta name="robots" content="noindex, nofollow"/>
6+
{% endblock %}
37
{% block content %}
48
<div class="col-sm-12 col-md-12 col-lg-10">
59
<div class="card">

otterwiki/templates/page.html

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
{#- vim: set et ts=8 sts=4 sw=4 ai: -#}
22
{% extends "wiki.html" %}
3+
{%block head %}
4+
{{ super() }}
5+
{%-if revision %}
6+
<meta name="robots" content="noindex"/>
7+
{%-endif%}
8+
{% endblock %}
39
{% block js %}
410
{{ super() }}
511
<script src="{{ url_for("static", filename="js/polyfill.e6.min.js") | debug_unixtime }}"></script>

0 commit comments

Comments
 (0)