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 %} {% if post.header.teaser %}
{% capture teaser %}{{ post.header.teaser }}{% endcapture %} {% capture teaser %}{{ post.header.teaser }}{% endcapture %}
{% else %} {% else %}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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