1
0
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:
Jens Bannmann 2023-03-22 18:48:27 +01:00 committed by GitHub
parent e24759fb41
commit af119c2891
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 %}
```