From 06938e4bbb530a5d67951259e6404e6b0f1070c7 Mon Sep 17 00:00:00 2001 From: Oliver Pratt Date: Fri, 10 Mar 2017 00:43:12 +0000 Subject: [PATCH] noindex nofollow robots meta tag value for hidden pages --- templates/base.html | 10 +++++++--- tests/content/pages/hidden.md | 8 ++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 tests/content/pages/hidden.md diff --git a/templates/base.html b/templates/base.html index 6cd02ea..8f79b77 100644 --- a/templates/base.html +++ b/templates/base.html @@ -40,7 +40,11 @@ - + {% if page in hidden_pages %} + + {% else %} + + {% endif %} {% if BROWSER_COLOR %} @@ -182,9 +186,9 @@ {% include "partial/jsonld.html" %} {% block additional_js %}{% endblock %} - + {% if GITHUB_CORNER_URL %} - {% include 'partial/github.html' %} + {% include 'partial/github.html' %} {% endif %} diff --git a/tests/content/pages/hidden.md b/tests/content/pages/hidden.md new file mode 100644 index 0000000..1d03981 --- /dev/null +++ b/tests/content/pages/hidden.md @@ -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` `` tag.