From b29e4bf5c9402b573bacda882faab2869c722796 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Fri, 4 Nov 2016 12:50:03 -0400 Subject: [PATCH] Replace `base_path` with `absolute_url` filter --- _includes/comments-providers/discourse.html | 3 +-- _includes/paginator.html | 4 ++-- _layouts/home.html | 2 -- docs/_includes/comments-providers/discourse.html | 3 +-- docs/_includes/paginator.html | 4 ++-- docs/_layouts/home.html | 2 -- docs/_pages/archive-layout-with-content.md | 1 - docs/_pages/sitemap.md | 2 +- docs/_posts/2010-08-07-post-image-caption.md | 4 +--- 9 files changed, 8 insertions(+), 17 deletions(-) diff --git a/_includes/comments-providers/discourse.html b/_includes/comments-providers/discourse.html index 1d23b6f2..1d772381 100644 --- a/_includes/comments-providers/discourse.html +++ b/_includes/comments-providers/discourse.html @@ -1,6 +1,5 @@ {% if site.comments.discourse.server %} -{% include base_path %} -{% capture canonical %}{{ base_path }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' | strip_slash }}{% endif %}{% endcapture %} +{% capture canonical %}{% if site.permalink contains '.html' %}{{ page.url | absolute_url }}{% else %}{{ page.url | absolute_url | remove:'index.html' | strip_slash }}{% endif %}{% endcapture %}