Skip to content

Commit

Permalink
Fix examples to use correct HTML <meta> syntax
Browse files Browse the repository at this point in the history
The docs mention `<meta>` tags for robots, but the examples mistakenly use the attribute name `property` instead of the correct `name`.
  • Loading branch information
bannmann authored Mar 22, 2023
1 parent e24759f commit af119c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/reference/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
```

Expand All @@ -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 %}
```
Expand Down

0 comments on commit af119c2

Please sign in to comment.