From 87476e0355ec72ea4795d6e53ee5f3148da2c676 Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Sat, 17 Sep 2011 09:40:14 -0500 Subject: [PATCH] removes index.html from canonical urls. closes #153 --- .themes/classic/source/_includes/head.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.themes/classic/source/_includes/head.html b/.themes/classic/source/_includes/head.html index d174112..be371e9 100644 --- a/.themes/classic/source/_includes/head.html +++ b/.themes/classic/source/_includes/head.html @@ -18,8 +18,8 @@ {% if page.keywords %} {% endif %} - - + {% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' }}{% endif %}{% endcapture %} +