Commit d3e81a2
_content/site.tmpl: add canonical link
This change adds to each page a 'canonical' link
so that search engines will index only the go.dev
copy of a particular page instead of the tip.golang.org
one.
(Beware that in local testing the golangorg.hostPathHandler
function rewrites https://go.dev URLs to refer to localhost,
so this change does not have the desired effect in that mode.)
Updates golang/go#69600
Change-Id: I5bd8b0e0ac1b1d1a0d1b67b30e600246ed0beab8
Reviewed-on: https://go-review.googlesource.com/c/website/+/712040
Reviewed-by: Sean Liao <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
Reviewed-by: Dmitri Shuralyov <[email protected]>
Auto-Submit: Alan Donovan <[email protected]>
Reviewed-by: Dmitri Shuralyov <[email protected]>1 parent 694921d commit d3e81a2
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
0 commit comments