From 91634d19c0a12266d3fff01a30ea3a70fe93720e Mon Sep 17 00:00:00 2001 From: Ben Balter Date: Tue, 13 Dec 2016 14:07:53 -0500 Subject: [PATCH] Use absolute_url to generate the cannonical URL Starting with Jekyll v3.3, Jekyll ships with `relative_url` and `absolute_url` filters. Rather than manual concatenating strings, we can rely on Jekyll to handle the logic in Ruby land, which takes into account the site's URL (locally and in production), and handles things like double "/"s. --- _includes/head-header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/head-header.html b/_includes/head-header.html index 17a83fa31e..28cec80a84 100644 --- a/_includes/head-header.html +++ b/_includes/head-header.html @@ -2,7 +2,7 @@ - {% if !page.no_canonical %}{% endif %} + {% if !page.no_canonical %}{% endif %}