Do not strip trailing slash of canonical URLs.
Brandon Mathis authored on 03/06/2012 at 14:46:58... | ... |
@@ -16,7 +16,7 @@ |
16 | 16 |
<meta name="MobileOptimized" content="320"> |
17 | 17 |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
18 | 18 |
|
19 |
- {% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' | strip_slash }}{% endif %}{% endcapture %} |
|
19 |
+ {% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' }}{% endif %}{% endcapture %} |
|
20 | 20 |
<link rel="canonical" href="{{ canonical }}"> |
21 | 21 |
<link href="{{ root_url }}/favicon.png" rel="icon"> |
22 | 22 |
<link href="{{ root_url }}/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css"> |