Commit 70f6cc9
authored
add canonical link tags for all pages (#28)
Add canonical link tags in the base template.
Use .Permalink as the source and strip a trailing .html suffix so
canonical URLs are extensionless (e.g. /architecture).
Prefer extensionless canonical URLs because they are shorter and
cleaner, while the .html variants remain valid and accessible on GitHub
Pages.
Canonical tags tell search engines which URL is authoritative, reducing
duplicate-URL ambiguity for indexing and ranking.
This approach is chosen in favor of meddling with `uglyURLs` to retain
compatibility with already-existing links out there on the intertubes.1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
0 commit comments