Skip to content

Instantly share code, notes, and snippets.

@simonlehmann
Created May 5, 2017 02:22
Show Gist options
  • Save simonlehmann/8361fb4082a38da0ace9ca0a16d81d34 to your computer and use it in GitHub Desktop.
Save simonlehmann/8361fb4082a38da0ace9ca0a16d81d34 to your computer and use it in GitHub Desktop.
Dynamically generated canonical URLs in Jekyll
<link rel="canonical" href="{{ site.url }}{{ page.url | replace:'index.html',''}}">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment