Skip to content

Commit

Permalink
Replace {{ base_path } with absolute_url filter
Browse files Browse the repository at this point in the history
  • Loading branch information
mmistakes committed Nov 3, 2016
1 parent f4a7599 commit 2d1c33c
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 25 deletions.
22 changes: 10 additions & 12 deletions docs/_pages/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 }}

---

Expand Down
1 change: 0 additions & 1 deletion docs/_pages/category-archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
author_profile: true
---

{% include base_path %}
{% include group-by-array collection=site.posts field="categories" %}

{% for category in group_names %}
Expand Down
1 change: 0 additions & 1 deletion docs/_pages/collection-archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
author_profile: true
---

{% include base_path %}
{% capture written_label %}'None'{% endcapture %}

{% for collection in site.collections %}
Expand Down
1 change: 0 additions & 1 deletion docs/_pages/page-archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
author_profile: false
---

{% include base_path %}
{% for post in site.pages %}
{% include archive-single.html %}
{% endfor %}
2 changes: 0 additions & 2 deletions docs/_pages/portfolio-archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
author_profile: false
---

{% include base_path %}

<div class="grid__wrapper">
{% for post in site.portfolio %}
{% include archive-single.html type="grid" %}
Expand Down
2 changes: 0 additions & 2 deletions docs/_pages/recipes-archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
author_profile: false
---

{% include base_path %}

{% for post in site.recipes %}
{% include archive-single.html %}
{% endfor %}
2 changes: 0 additions & 2 deletions docs/_pages/sitemap.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion docs/_pages/tag-archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
author_profile: true
---

{% include base_path %}
{% include group-by-array collection=site.posts field="tags" %}

{% for tag in group_names %}
Expand Down
3 changes: 1 addition & 2 deletions docs/_pages/terms.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion docs/_pages/year-archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
author_profile: true
---

{% include base_path %}
{% capture written_year %}'None'{% endcapture %}
{% for post in site.posts %}
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
Expand Down

0 comments on commit 2d1c33c

Please sign in to comment.