From ef2c80bc94d45490ce0b7f34c7e0684dfa4f2737 Mon Sep 17 00:00:00 2001 From: Jeff MacKinnon Date: Tue, 29 Nov 2022 15:32:43 -0400 Subject: [PATCH] adding robots meta for hidden articles and pages --- templates/article.html | 6 ++++++ templates/page.html | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/templates/article.html b/templates/article.html index ee25342..c0ec6d5 100644 --- a/templates/article.html +++ b/templates/article.html @@ -5,6 +5,12 @@ {% block title %}{{ SITENAME }} - {{ article.title|striptags }}{% endblock %} {% block head %} +{% if article.status == "hidden" %} + + + +{% endif %} + {{ super() }} {% import 'translations.html' as translations with context %} {% if translations.entry_hreflang(article) %} diff --git a/templates/page.html b/templates/page.html index ddda214..74b2f93 100644 --- a/templates/page.html +++ b/templates/page.html @@ -4,6 +4,12 @@ {% block title %}{{ SITENAME }} - {{ page.title|striptags }}{%endblock%} {% block head %} +{% if page.status == "hidden" %} + + + +{% endif %} + {{ super() }} {% import 'translations.html' as translations with context %}