title | description | summary | date | lastmod | draft | weight | toc | seo | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Canonical |
2024-03-13 17:44:10 +0100 |
2024-03-13 17:44:10 +0100 |
false |
310 |
true |
|
The rel
HTML attribute defines the relationship between a linked resource and the current document. A canonical
value defines the preferred URL for the current document, which helps search engines reduce duplicate content.
You can set a custom canonical
URL in the frontmatter of a page:
---
seo:
canonical: "" # custom canonical URL (optional)
---
If you do not specify a custom canonical URL, the Permalink of the current page is used (default).
Hyas SEO generates the following meta tag — for example:
<link rel="canonical" href="https://seo.gethyas.com/docs/basics/canonical/">