DEV Community

loading...

Discussion on: Cross-post from Medium

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!