Skip to content
Browse files

Merge pull request #592 from omasanori/fix-rel-canonical

Do not strip trailing slash of canonical URLs.
  • Loading branch information...
2 parents e53b26a + f3c68bb commit 90ef78edb30218171351eb52c1f4f3c0212eb41e @imathis committed Jun 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 .themes/classic/source/_includes/head.html
View
2 .themes/classic/source/_includes/head.html
@@ -16,7 +16,7 @@
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1">
- {% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' | strip_slash }}{% endif %}{% endcapture %}
+ {% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' }}{% endif %}{% endcapture %}
<link rel="canonical" href="{{ canonical }}">
<link href="{{ root_url }}/favicon.png" rel="icon">
<link href="{{ root_url }}/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">

0 comments on commit 90ef78e

Please sign in to comment.
Something went wrong with that request. Please try again.