Skip to content

Commit af119c2

Browse files
authored
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`.
1 parent e24759f commit af119c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: docs/reference/index.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ e.g. to add indexing policies for search engines via the `robots` property:
259259
{% extends "base.html" %}
260260
261261
{% block extrahead %}
262-
<meta property="robots" content="noindex, nofollow" />
262+
<meta name="robots" content="noindex, nofollow" />
263263
{% endblock %}
264264
```
265265

@@ -276,9 +276,9 @@ template override, e.g.:
276276
277277
{% block extrahead %}
278278
{% if page and page.meta and page.meta.robots %}
279-
<meta property="robots" content="{{ page.meta.robots }}" />
279+
<meta name="robots" content="{{ page.meta.robots }}" />
280280
{% else %}
281-
<meta property="robots" content="index, follow" />
281+
<meta name="robots" content="index, follow" />
282282
{% endif %}
283283
{% endblock %}
284284
```

0 commit comments

Comments
 (0)