Make base_path available to all includes that need it
This commit is contained in:
parent
a473d9467d
commit
d7df394a5e
12 changed files with 24 additions and 0 deletions
|
@ -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 %}
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
|
@ -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 = "#" %}
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
{% include base_path %}
|
||||||
|
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
|
|
||||||
{% include seo.html %}
|
{% include seo.html %}
|
||||||
|
|
|
@ -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">
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue