Skip to content

Instantly share code, notes, and snippets.

@bennylope
Created February 23, 2012 19:50
Show Gist options
  • Save bennylope/1894706 to your computer and use it in GitHub Desktop.
Save bennylope/1894706 to your computer and use it in GitHub Desktop.
Canonical URLs with Jekyll
<link rel="canonical" href="http://yourdomain.com{{ page.url | replace:'index.html','' }}" />
@elishadamu97
Copy link

Please where do I place this code in my Jekyll website?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment