Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.02 KB

canonical.md

File metadata and controls

38 lines (30 loc) · 1.02 KB
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
title description canonical robots

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.

Settings

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).

Generated meta tag

Hyas SEO generates the following meta tag — for example:

<link rel="canonical" href="https://seo.gethyas.com/docs/basics/canonical/">