From bd7493a7da3f79fa1b3b4dd7d73375b07182362b Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sun, 1 Dec 2013 14:57:38 +0100 Subject: [PATCH] better meta canonical --- _src/_includes/head.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/_src/_includes/head.html b/_src/_includes/head.html index 98a35599..d14c451d 100644 --- a/_src/_includes/head.html +++ b/_src/_includes/head.html @@ -45,6 +45,7 @@ {% else %} {% endif %} + @@ -52,6 +53,9 @@ + {% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' | strip_slash }}{% endif %}{% endcapture %} + + {% if page.style %} @@ -67,9 +71,7 @@ var total = {{ paginator.total_pages }}; {% endif %} - - - +