Replace base_path with absolute_url filter

This commit is contained in:
Michael Rose
2016-11-04 12:50:03 -04:00
parent bdca8cab8b
commit b29e4bf5c9
9 changed files with 8 additions and 17 deletions

View File

@@ -213,7 +213,6 @@ Still sticking with science and Isaac Newton's E = MC<sup>2</sup>, which should
This allows you to denote <var>variables</var>.
{% include base_path %}
{% for post in site.pages %}
{% include archive-single.html %}
{% endfor %}

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" | absolute_url }}) available for digesting as well.
<h2>Pages</h2>
{% for post in site.pages %}