Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (17 sloc) 1.18 KB
title description date published
Feature: Canonical URLs
Learn how to use canonical URls in an article or page using Contentz.
2019-03-13 18:44:01 UTC
true

import CanonicalURL from "contentz/src/components/canonical.js";

Since the version one of Contentz it has supported the usage of canonical URLs. That mean if you set canonical_url: URL in any article or page it will add a meta tag similar to this one.

<meta rel="canonical" href="URL"/>

This will tell Google the original source of the content in that article or page is the defined URL and then it will send the traffic to that webpage. This is useful in case you published a content in another website and want to syndicate to your own website to keep a copy but without duplicating content.

The Canoncial URL element

Starting version 2.7.0 Contentz render a canonical URL element below the description of the article linking to the original article. It will look like to this one.

☝️That is the real component.

This will be added automatically to each article or page if you add the canonical_url to the file metadata so you don't have to do anything.

You can’t perform that action at this time.