Make base_path available to all includes that need it

This commit is contained in:
Michael Rose 2016-04-14 14:45:48 -04:00
parent a473d9467d
commit d7df394a5e
12 changed files with 24 additions and 0 deletions

View file

@ -1,3 +1,5 @@
{% include base_path %}
{% if post.header.teaser %}
{% capture teaser %}{{ post.header.teaser }}{% endcapture %}
{% else %}

View file

@ -1,3 +1,5 @@
{% include base_path %}
{% if page.author %}
{% assign author = site.data.authors[page.author] %}{% else %}{% assign author = site.author %}
{% endif %}

View file

@ -1,5 +1,7 @@
{% include base_path %}
{% include base_path %}
{% case site.categories.type %}
{% when "liquid" %}
{% assign path_type = "#" %}

View file

@ -1,3 +1,5 @@
{% include base_path %}
<div class="page__comments">
<h4 class="page__comments-title">{{ site.data.ui-text[site.locale].comments_label }}</h4>
{% case site.comments.provider %}

View file

@ -1,3 +1,5 @@
{% include base_path %}
<meta charset="utf-8">
{% include seo.html %}

View file

@ -1,3 +1,5 @@
{% include base_path %}
<div class="masthead">
<div class="masthead__inner-wrap">
<div class="masthead__menu">

View file

@ -1,3 +1,5 @@
{% include base_path %}
{% if page.header.image contains "http" %}
{% capture img_path %}{{ page.header.image }}{% endcapture %}
{% else %}

View file

@ -1,3 +1,5 @@
{% include base_path %}
{% if site.tags.type and page.tags[0] %}
{% include tag-list.html %}
{% endif %}

View file

@ -1,3 +1,5 @@
{% include base_path %}
{% if page.previous or page.next %}
<nav class="pagination">
{% if page.previous %}

View file

@ -1,3 +1,5 @@
{% include base_path %}
<!-- begin SEO -->
{% if site.url %}
{% assign seo_url = site.url | append: site.baseurl %}

View file

@ -1,3 +1,5 @@
{% include base_path %}
{% if page.author_profile or page.sidebar %}
<div class="sidebar sticky">
{% if page.author_profile %}{% include author-profile.html %}{% endif %}

View file

@ -1,3 +1,5 @@
{% include base_path %}
<section class="page__share">
{% if site.data.ui-text[site.locale].share_on_label %}
<h4 class="page__share-title">{{ site.data.ui-text[site.locale].share_on_label }}</h4>