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.