noindex nofollow robots meta tag value for hidden pages
This commit is contained in:
parent
772035ea96
commit
06938e4bbb
2 changed files with 15 additions and 3 deletions
|
@ -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" />
|
||||
{% 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 -->
|
||||
|
|
8
tests/content/pages/hidden.md
Normal file
8
tests/content/pages/hidden.md
Normal 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.
|
Loading…
Reference in a new issue