Skip to content

Commit

Permalink
Merge pull request #5244 from bannmann/fix-meta-tag-syntax
Browse files Browse the repository at this point in the history
Fix examples to use correct HTML <meta> syntax
  • Loading branch information
squidfunk committed Mar 22, 2023
2 parents e24759f + af119c2 commit 9805b3c
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 9805b3c

Please sign in to comment.