adding robots meta for hidden articles and pages
This commit is contained in:
parent
2602fbe89f
commit
ef2c80bc94
2 changed files with 12 additions and 0 deletions
|
@ -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) %}
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue