mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-28 01:10:58 +01: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" %}
|
||||
|
||||
{% 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 %}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user