Merge pull request #5244 from bannmann/fix-meta-tag-syntax

Fix examples to use correct HTML <meta> syntax
This commit is contained in:
Martin Donath
2023-03-22 19:29:18 +01:00
committed by GitHub

View File

@@ -259,7 +259,7 @@ e.g. to add indexing policies for search engines via the `robots` property:
{% extends "base.html" %}
{% block extrahead %}
<meta property="robots" content="noindex, nofollow" />
<meta name="robots" content="noindex, nofollow" />
{% endblock %}
```
@@ -276,9 +276,9 @@ template override, e.g.:
{% block extrahead %}
{% if page and page.meta and page.meta.robots %}
<meta property="robots" content="{{ page.meta.robots }}" />
<meta name="robots" content="{{ page.meta.robots }}" />
{% else %}
<meta property="robots" content="index, follow" />
<meta name="robots" content="index, follow" />
{% endif %}
{% endblock %}
```