-
Notifications
You must be signed in to change notification settings - Fork 242
Add canonical tag to homepage for SEO #1367
Comments
This is a misunderstanding of the canonical tag. When there are multiple "copies" of the exact same page (e.g. if a page appears under two subdomains) then the canonical tag is supposed to disambiguate which of those pages is the "canonical" one, and which the copy. The canonical tag is not supposed to point to a page with different contents, and using it like this will only confuse search engines, not help them. |
@gbaz Yes and no. Google Search docs considers " content you provide on a blog for syndication to other sites is replicated in part or in full on those domains" as a legitimate use-case for Many Haddock contents will contain a README which is the same as the Github or homepage, altough others may differ. But I agree to substantially to your point, it may not be wise since it won't be uniformly correct. Are there any other SEO techniques that will suport the correct resolution of this question, whatever it is? |
Sorry, The following excerpts are relevant:
So while Haddock contents might comply, they also might not, so including this in Haddock is probably a bad idea. |
Proposal
Add the cabal
homepage
attribute asrel=canonical
to the contents page of Haddocks.Discussion
Where should a Google search for a package take you?
If the answer is (2), (which is my opinion, since homepges tend to contain fuller descriptions and point to further resources), then adding a canonical tag should help search engines pick this up.
The text was updated successfully, but these errors were encountered: