noindex nofollow robots meta tag value for hidden pages

This commit is contained in:
Oliver Pratt 2017-03-10 00:43:12 +00:00 committed by Alexandre Vicenzi
parent 772035ea96
commit 06938e4bbb
2 changed files with 15 additions and 3 deletions

View file

@ -40,7 +40,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="{{ ROBOTS }}" />
{% if page in hidden_pages %}
<meta name="robots" content="noindex, nofollow" />
{% else %}
<meta name="robots" content="{{ ROBOTS }}" />
{% endif %}
{% if BROWSER_COLOR %}
<!-- Chrome, Firefox OS and Opera -->

View file

@ -0,0 +1,8 @@
Title: Hidden
Date: 2016-01-01 12:00
Modified: 2016-01-01 12:00
Status: hidden
This is a hidden page.
It will have `noindex, nofollow` as the value of the `robots` `<meta>` tag.