From 6576ab0e80fc1fe7dd22d449ffb7ea604b0437f2 Mon Sep 17 00:00:00 2001 From: olipratt Date: Sat, 4 Mar 2017 12:49:16 +0000 Subject: [PATCH] Apply feedback from issue discussion - remove config option and simplify change --- templates/base.html | 6 +++++- tests/content/pages/hidden.md | 2 +- tests/pelicanconf.py | 2 -- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/templates/base.html b/templates/base.html index 8b3ba8e..8f79b77 100644 --- a/templates/base.html +++ b/templates/base.html @@ -40,7 +40,11 @@ - + {% if page in hidden_pages %} + + {% else %} + + {% endif %} {% if BROWSER_COLOR %} diff --git a/tests/content/pages/hidden.md b/tests/content/pages/hidden.md index ca607a4..1d03981 100644 --- a/tests/content/pages/hidden.md +++ b/tests/content/pages/hidden.md @@ -5,4 +5,4 @@ Status: hidden This is a hidden page. -It will have the contents of `ROBOTS_HIDDEN` as the value of the `robots` `` tag. +It will have `noindex, nofollow` as the value of the `robots` `` tag. diff --git a/tests/pelicanconf.py b/tests/pelicanconf.py index 2b8d965..86b2f4a 100644 --- a/tests/pelicanconf.py +++ b/tests/pelicanconf.py @@ -18,9 +18,7 @@ SITELOGO = u'https://www.example.com/img/profile.png' FAVICON = SITEURL + '/images/favicon.ico' BROWSER_COLOR = '#333' -# 'robots' meta tag values for normal and hidden pages. ROBOTS = u'index, follow' -ROBOTS_HIDDEN = u'noindex, nofollow' THEME = u'../' PATH = u'content'