From d7df394a5e84eb79abd126f3af6171a6ec93b788 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Thu, 14 Apr 2016 14:45:48 -0400 Subject: [PATCH] Make base_path available to all includes that need it --- _includes/archive-single.html | 2 ++ _includes/author-profile.html | 2 ++ _includes/category-list.html | 2 ++ _includes/comments.html | 2 ++ _includes/head.html | 2 ++ _includes/masthead.html | 2 ++ _includes/page__hero.html | 2 ++ _includes/page__taxonomy.html | 2 ++ _includes/post_pagination.html | 2 ++ _includes/seo.html | 2 ++ _includes/sidebar.html | 2 ++ _includes/social-share.html | 2 ++ 12 files changed, 24 insertions(+) diff --git a/_includes/archive-single.html b/_includes/archive-single.html index cd40167..60b63f9 100644 --- a/_includes/archive-single.html +++ b/_includes/archive-single.html @@ -1,3 +1,5 @@ +{% include base_path %} + {% if post.header.teaser %} {% capture teaser %}{{ post.header.teaser }}{% endcapture %} {% else %} diff --git a/_includes/author-profile.html b/_includes/author-profile.html index cf2b086..40ae6d4 100644 --- a/_includes/author-profile.html +++ b/_includes/author-profile.html @@ -1,3 +1,5 @@ +{% include base_path %} + {% if page.author %} {% assign author = site.data.authors[page.author] %}{% else %}{% assign author = site.author %} {% endif %} diff --git a/_includes/category-list.html b/_includes/category-list.html index 9094ea6..2347133 100644 --- a/_includes/category-list.html +++ b/_includes/category-list.html @@ -1,5 +1,7 @@ {% include base_path %} +{% include base_path %} + {% case site.categories.type %} {% when "liquid" %} {% assign path_type = "#" %} diff --git a/_includes/comments.html b/_includes/comments.html index 0e33033..03a8c64 100644 --- a/_includes/comments.html +++ b/_includes/comments.html @@ -1,3 +1,5 @@ +{% include base_path %} +

{{ site.data.ui-text[site.locale].comments_label }}

{% case site.comments.provider %} diff --git a/_includes/head.html b/_includes/head.html index 79b7926..a28ce9a 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -1,3 +1,5 @@ +{% include base_path %} + {% include seo.html %} diff --git a/_includes/masthead.html b/_includes/masthead.html index 0b779ac..ffef559 100644 --- a/_includes/masthead.html +++ b/_includes/masthead.html @@ -1,3 +1,5 @@ +{% include base_path %} +
diff --git a/_includes/page__hero.html b/_includes/page__hero.html index 8432fbd..ef0f4ca 100644 --- a/_includes/page__hero.html +++ b/_includes/page__hero.html @@ -1,3 +1,5 @@ +{% include base_path %} + {% if page.header.image contains "http" %} {% capture img_path %}{{ page.header.image }}{% endcapture %} {% else %} diff --git a/_includes/page__taxonomy.html b/_includes/page__taxonomy.html index 9bb6c61..53b5b80 100644 --- a/_includes/page__taxonomy.html +++ b/_includes/page__taxonomy.html @@ -1,3 +1,5 @@ +{% include base_path %} + {% if site.tags.type and page.tags[0] %} {% include tag-list.html %} {% endif %} diff --git a/_includes/post_pagination.html b/_includes/post_pagination.html index c364e60..0a3acac 100644 --- a/_includes/post_pagination.html +++ b/_includes/post_pagination.html @@ -1,3 +1,5 @@ +{% include base_path %} + {% if page.previous or page.next %}