Remove deprecated base_path include helper

This commit is contained in:
Michael Rose
2018-09-11 09:58:22 -04:00
parent 2f40bb6403
commit 90f5a98406
9 changed files with 18 additions and 30 deletions

View File

@@ -211,9 +211,4 @@ Still sticking with science and Albert Einstein's E = MC<sup>2</sup>, which shou
### Variable Tag
This allows you to denote <var>variables</var>.
{% include base_path %}
{% for post in site.pages %}
{% include archive-single.html %}
{% endfor %}
This allows you to denote <var>variables</var>.

View File

@@ -5,7 +5,7 @@ permalink: /sitemap/
author_profile: false
---
A list of all the posts and pages found on the site. For you robots out there is an [XML version]({{ base_path }}/sitemap.xml) available for digesting as well.
A list of all the posts and pages found on the site. For you robots out there is an [XML version]({{ '/sitemap.xml' | relative_url }}) available for digesting as well.
<h2>Pages</h2>
{% for post in site.pages %}

View File

@@ -7,10 +7,8 @@ tags:
- Post Formats
---
{% include base_path %}
{% capture fig_img %}
![Foo]({{ basepath }}/assets/images/unsplash-gallery-image-3.jpg)
![Foo]({{ '/assets/images/unsplash-gallery-image-3.jpg' | relative_url }})
{% endcapture %}
<figure>

View File

@@ -18,8 +18,6 @@ tags:
last_modified_at: 2016-05-02T11:39:01-04:00
---
{% include base_path %}
This post should display a **header with an overlay image**, if the theme supports it.
Non-square images can provide some unique styling issues.
@@ -30,7 +28,7 @@ This post tests overlay header images.
You can use it by specifying the opacity (between 0 and 1) of a black overlay like so:
![transparent black overlay]({{ basepath }}/assets/images/mm-header-overlay-black-filter.jpg)
![transparent black overlay]({{ '/assets/images/mm-header-overlay-black-filter.jpg' | relative_url }})
```yaml
excerpt: "This post should [...]"
@@ -45,7 +43,7 @@ header:
Or if you want to do more fancy things, go full rgba:
![transparent red overlay]({{ basepath }}/assets/images/mm-header-overlay-red-filter.jpg)
![transparent red overlay]({{ '/assets/images/mm-header-overlay-red-filter.jpg' | relative_url }})
```yaml
excerpt: "This post should [...]"