mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fix examples to use correct HTML <meta> syntax
The docs mention `<meta>` tags for robots, but the examples mistakenly use the attribute name `property` instead of the correct `name`.
This commit is contained in:
parent
e24759fb41
commit
af119c2891
@ -259,7 +259,7 @@ e.g. to add indexing policies for search engines via the `robots` property:
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block extrahead %}
|
{% block extrahead %}
|
||||||
<meta property="robots" content="noindex, nofollow" />
|
<meta name="robots" content="noindex, nofollow" />
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -276,9 +276,9 @@ template override, e.g.:
|
|||||||
|
|
||||||
{% block extrahead %}
|
{% block extrahead %}
|
||||||
{% if page and page.meta and page.meta.robots %}
|
{% if page and page.meta and page.meta.robots %}
|
||||||
<meta property="robots" content="{{ page.meta.robots }}" />
|
<meta name="robots" content="{{ page.meta.robots }}" />
|
||||||
{% else %}
|
{% else %}
|
||||||
<meta property="robots" content="index, follow" />
|
<meta name="robots" content="index, follow" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user