We are developing two sites for a client - one of which is Shopify and is live, the other a non-Shopify site which is still in development.
They require a small subset of the blog posts published on the Shopify site to be migrated across to the new non-Shopify site. However, we dont’ want to remove the Shopify posts, simply duplicate them and add a rel canonical tag to the relevant posts to prevent duplicate content issues.
Can someone advise how this might be done?
I thought about editing the liquid for the “add new blog post” to have an extra option that would have an area to add the canonical link. Then, if it’s present, add it to the generated blog post itself. I’m struggling to find how to do this, or even if this is the best approach. Perhaps tags would be better??
Help appreciated.
Steve