diff options
author | Brandon Mathis <brandon@imathis.com> | 2012-06-03 07:46:58 -0700 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2012-06-03 07:46:58 -0700 |
commit | 90ef78edb30218171351eb52c1f4f3c0212eb41e (patch) | |
tree | 0d7f968211c7a4d64ce409d47396083ee22ad942 /.themes/classic | |
parent | e53b26ad3042d5657c869ab1961c35e7b716e4e9 (diff) | |
parent | f3c68bb73f4763c52dbdfc9d958707e3816d0475 (diff) | |
download | my_new_personal_website-90ef78edb30218171351eb52c1f4f3c0212eb41e.tar.xz my_new_personal_website-90ef78edb30218171351eb52c1f4f3c0212eb41e.zip |
Merge pull request #592 from omasanori/fix-rel-canonical
Do not strip trailing slash of canonical URLs.
Diffstat (limited to '')
-rw-r--r-- | .themes/classic/source/_includes/head.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.themes/classic/source/_includes/head.html b/.themes/classic/source/_includes/head.html index 0fdc4019..d7abd6fd 100644 --- a/.themes/classic/source/_includes/head.html +++ b/.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"> |