Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 86514a2

Browse files
authored
Merge pull request #10440 from dstansby/canonical-link
Add canonical link to webpages
2 parents b3552b9 + 549c3df commit 86514a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/_templates/layout.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ <h3>{{ _('Navigation') }}</h3>
153153
}}" />
154154
{%- endif %}
155155
{%- endblock %}
156-
{%- block extrahead %} {% endblock %}
156+
{%- block extrahead %}
157+
<link rel="canonical" href="https://matplotlib.org/{{pagename}}.html" />
158+
{% endblock %}
157159

158160

159161
</head>

0 commit comments

Comments
 (0)