adding robots meta for hidden articles and pages

This commit is contained in:
Jeff MacKinnon 2022-11-29 15:32:43 -04:00
parent 2602fbe89f
commit ef2c80bc94
2 changed files with 12 additions and 0 deletions

View file

@ -5,6 +5,12 @@
{% block title %}{{ SITENAME }} - {{ article.title|striptags }}{% endblock %}
{% block head %}
{% if article.status == "hidden" %}
<meta name="robots" content="noindex">
<meta name="robots" content="nofollow">
<meta name="robots" content="noarchive">
{% endif %}
{{ super() }}
{% import 'translations.html' as translations with context %}
{% if translations.entry_hreflang(article) %}

View file

@ -4,6 +4,12 @@
{% block title %}{{ SITENAME }} - {{ page.title|striptags }}{%endblock%}
{% block head %}
{% if page.status == "hidden" %}
<meta name="robots" content="noindex">
<meta name="robots" content="nofollow">
<meta name="robots" content="noarchive">
{% endif %}
{{ super() }}
{% import 'translations.html' as translations with context %}