Posts Setting Cannonical Urls for Your Poole / Jekyll Blog

Setting Cannonical Urls for Your Poole / Jekyll Blog

Setting a Canonical Url for your Poole or Jekyll Blog

I have started migrating some of my old posts over from Medium and the recent freeCodeCamp migrations from Medium means that some version of some of my posts now live in 3 places at the moment.

While I don’t especially care for SEO on this blog, and have kept bells and whistles and sharing widgets off the blog, I still though it might be worth trying to set up canonical urls since working with static site generated blogs throws up interesting challenges like this occassionally.

It turns out that while Poole (the Jekyll ‘butler’ I use for this blog) doesn’t support canonical urls straight out of the box, it is remarkably easy to set up by editing the head.html fragment.

I just wrote the following in _includes/head.html, and it works seamlessly for all posts:

<link rel="canonical" href="" />

Now to figure out how to update the canonical urls on Medium and freeCodeCamp News!


Actually, I’ll delete them from Medium! Discoverability has tanked on Medium anyway since the paywall. Better to just jump ship all-together, I think.

If you have any questions or comments, ping me on Twitter: @JacksonBates. If you liked this post, you can share it!

This post is licensed under CC BY 4.0 by the author.