How to add a canonical URL to Jekyll posts

30 May 2020
·
jekyll
·

Add jekyll-seo-tag to your _config.yml file.

plugins:
 - jekyll-seo-tag

Then in the frontmatter for your posts, add the canonical URL:

---
title: How to add a canonical URL to Jekyll posts
canonical_url: 'https://your-canonical-url-here'
---
🦉 Subscribe to my monthly newsletter for updates on my latest posts and projects.