Replace {{ base_path } with absolute_url filter

This commit is contained in:
Michael Rose 2016-11-03 11:59:23 -04:00
parent 57a4324fa0
commit 73d12ab1b1
10 changed files with 11 additions and 25 deletions

View file

@ -12,16 +12,14 @@ layouts_gallery:
- url: /assets/images/mm-layout-archive.png
image_path: /assets/images/mm-layout-archive.png
alt: "archive layout example"
modified: 2016-10-10T11:51:50-04:00
modified: 2016-11-03T11:55:22-04:00
---
{% include base_path %}
Minimal Mistakes is a flexible two-column Jekyll theme. Perfect for hosting your personal site, blog, or portfolio on GitHub or self-hosting on your own server. As the name implies --- styling is purposely minimalistic to be enhanced and customized by you :smile:.
{% include gallery id="layouts_gallery" caption="Examples of included layouts `splash`, `single`, and `archive`." %}
[Install the Theme]({{ base_path }}/docs/quick-start-guide/){: .btn .btn--success .btn--large}
[Install the Theme]({{ "/docs/quick-start-guide/" | absolute_url }}){: .btn .btn--success .btn--large}
## Notable Features
@ -48,14 +46,14 @@ Minimal Mistakes is a flexible two-column Jekyll theme. Perfect for hosting your
For even more demo pages check the [posts archive][year-archive].
[header-image-post]: {{ base_path }}{% post_url 2012-03-15-layout-header-image-text-readability %}
[gallery-post]: {{ base_path }}{% post_url 2010-09-09-post-gallery %}
[html-tags-post]: {{ base_path }}{% post_url 2013-01-11-markup-html-tags-and-formatting %}
[syntax-post]: {{ base_path }}{% post_url 2013-08-16-markup-syntax-highlighting %}
[sample-collection]: {{ base_path }}/recipes/chocolate-chip-cookies/
[categories-archive]: {{ base_path }}/categories/
[tags-archive]: {{ base_path }}/tags/
[year-archive]: {{ base_path }}/year-archive/
[header-image-post]: {{ "" | absolute_url }}{% post_url 2012-03-15-layout-header-image-text-readability %}
[gallery-post]: {{ "" | absolute_url }}{% post_url 2010-09-09-post-gallery %}
[html-tags-post]: {{ "" | absolute_url }}{% post_url 2013-01-11-markup-html-tags-and-formatting %}
[syntax-post]: {{ "" | absolute_url }}{% post_url 2013-08-16-markup-syntax-highlighting %}
[sample-collection]: {{ "/recipes/chocolate-chip-cookies/" | absolute_url }}
[categories-archive]: {{ "/categories/" | absolute_url }}
[tags-archive]: {{ "/tags/" | absolute_url }}
[year-archive]: {{ "/year-archive/" | absolute_url }}
---

View file

@ -5,7 +5,6 @@ title: "Posts by Category"
author_profile: true
---
{% include base_path %}
{% include group-by-array collection=site.posts field="categories" %}
{% for category in group_names %}

View file

@ -5,7 +5,6 @@ permalink: /collection-archive/
author_profile: true
---
{% include base_path %}
{% capture written_label %}'None'{% endcapture %}
{% for collection in site.collections %}

View file

@ -5,7 +5,6 @@ permalink: /page-archive/
author_profile: false
---
{% include base_path %}
{% for post in site.pages %}
{% include archive-single.html %}
{% endfor %}

View file

@ -5,8 +5,6 @@ permalink: /portfolio/
author_profile: false
---
{% include base_path %}
<div class="grid__wrapper">
{% for post in site.portfolio %}
{% include archive-single.html type="grid" %}

View file

@ -5,8 +5,6 @@ permalink: /recipes/
author_profile: false
---
{% include base_path %}
{% for post in site.recipes %}
{% include archive-single.html %}
{% endfor %}

View file

@ -5,8 +5,6 @@ permalink: /sitemap/
author_profile: false
---
{% include base_path %}
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.
<h2>Pages</h2>

View file

@ -5,7 +5,6 @@ title: "Posts by Tags"
author_profile: true
---
{% include base_path %}
{% include group-by-array collection=site.posts field="tags" %}
{% for tag in group_names %}

View file

@ -1,10 +1,9 @@
---
permalink: /terms/
title: "Terms and Privacy Policy"
modified: 2016-06-06
modified: 2016-11-03T11:57:46-04:00
---
{% include base_path %}
{% include toc %}
## Privacy Policy

View file

@ -5,7 +5,6 @@ title: "Posts by Year"
author_profile: true
---
{% include base_path %}
{% capture written_year %}'None'{% endcapture %}
{% for post in site.posts %}
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}