mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Merge pull request #5244 from bannmann/fix-meta-tag-syntax
Fix examples to use correct HTML <meta> syntax
This commit is contained in:
commit
9805b3cb20
@ -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