Skip to content

Commit 1bc6573

Browse files
thephezclaude
andauthored
feat: add canonical URL meta tag to improve SEO (#556)
Prevents Google from choosing /en/latest/ as canonical URL, helping to resolve duplicate content issues across versions. Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 7944fab commit 1bc6573

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

_templates/layout.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{% extends "!layout.html" %}
22
{% block extrahead %}
3+
{# Canonical URL: stops Google choosing /en/latest/ as canonical #}
4+
{% if canonical_url %}
5+
<link rel="canonical" href="{{ canonical_url }}" />
6+
{% endif %}
37
<link href="{{ pathto("_static/style.css", True) }}" rel="stylesheet" type="text/css">
48
<meta name="google-site-verification" content="JVzTMPjsCY-U-SaJERGf-eviRxXUPfFkPFdiF_MINCU" />
59
<meta name="author" content="Dash Core Group, Inc." />

0 commit comments

Comments
 (0)