DEV Community

seckelberny67
seckelberny67

Posted on

Cross-post from Medium

Hello. I've written my original article at Medium. Now I want to post it at Dev to but don't want to have a bad influence on my SEO. As I understand, I should use Canonical URL, right? But when I add it in front of my article and save it, I do not see "originally published at" in front of it. How can I solve this issue?

Top comments (4)

Collapse
 
gsto profile image
Glenn Stovall •

In the meta at the top of your post, include the canonical_url variable. If you want to display it in your article, you have to add text manually.

Collapse
 
harittweets profile image
Harit Himanshu •

Is there an example that we could use?

Collapse
 
gsto profile image
Glenn Stovall •

Here's one from a recent article of mine:

In the metadata:

---
title: Roll your Own Redux With useContext & useReducer
published: true
tags: hooks,javascript,react
canonical_url: https://glennstovall.com/ducklings-roll-your-own-redux-with-usecontext-usereducer/
cover_image: https://thepracticaldev.s3.amazonaws.com/i/8bsspsjfh63qxbvgiuag.jpg
---

In the text:

[Roll your Own Redux With useContext & useReducer](https://glennstovall.com/ducklings-roll-your-own-redux-with-usecontext-usereducer/) first appeared on [Glenn Stovall - Engineer](https://glennstovall.com).
Thread Thread
 
harittweets profile image
Harit Himanshu •

This is fantastic!