Remove extensions from _includes to simplify naming

This commit is contained in:
Michael Rose
2016-03-07 10:27:07 -05:00
parent 0ccaef5a96
commit 3bd495f1d4
35 changed files with 148 additions and 156 deletions

View File

@ -5,13 +5,13 @@ title: "Posts by Category"
author_profile: false
---
{% include absolute-url.liquid %}
{% include group-by-array.html collection=site.posts field='categories' %}
{% include base_path %}
{% include group-by-array collection=site.posts field='categories' %}
{% for category in group_names %}
{% assign posts = group_items[forloop.index0] %}
<h3>{{ category }}</h3>
{% for post in posts %}
{% include archive-list-single.html %}
{% include archive-list-single %}
{% endfor %}
{% endfor %}

View File

@ -5,7 +5,7 @@ permalink: /collection-archive/
author_profile: false
---
{% include absolute-url.liquid %}
{% include base_path %}
{% capture written_label %}'None'{% endcapture %}
{% for collection in site.collections %}
@ -18,7 +18,7 @@ author_profile: false
{% endunless %}
{% for post in collection.docs %}
{% unless collection.output == false or collection.label == 'posts' %}
{% include archive-list-single.html %}
{% include archive-list-single %}
{% endunless %}
{% endfor %}
{% endfor %}

View File

@ -7,10 +7,10 @@ header:
caption: "Photo credit: [**Unsplash**](https://unsplash.com)"
---
{% include absolute-url.liquid %}
{% include base_path %}
### Recent Posts
{% for post in site.posts limit:5 %}
{% include archive-list-single.html %}
{% include archive-list-single %}
{% endfor %}

View File

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

View File

@ -4,13 +4,13 @@ title: "Portfolio"
permalink: /portfolio/
---
{% include absolute-url.liquid %}
{% include group-by-array.html collection=site.portfolio field='categories' %}
{% include base_path %}
{% include group-by-array collection=site.portfolio field='categories' %}
{% for category in group_names %}
{% assign posts = group_items[forloop.index0] %}
<h3>{{ category }}</h3>
{% for post in posts %}
{% include archive-list-single.html %}
{% include archive-list-single %}
{% endfor %}
{% endfor %}

View File

@ -5,13 +5,13 @@ permalink: /recipes/
author_profile: false
---
{% include absolute-url.liquid %}
{% include group-by-array.html collection=site.recipes field='categories' %}
{% include base_path %}
{% include group-by-array collection=site.recipes field='categories' %}
{% for category in group_names %}
{% assign posts = group_items[forloop.index0] %}
<h3>{{ category }}</h3>
{% for post in posts %}
{% include archive-list-single.html %}
{% include archive-list-single %}
{% endfor %}
{% endfor %}

View File

@ -5,18 +5,18 @@ permalink: /sitemap/
author_profile: false
---
{% include absolute-url.liquid %}
{% include base_path %}
A list of all the posts and pages found on the site. For you robots out there is an [XML version]({{ absurl }}/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]({{ base_path }}/sitemap.xml) available for digesting as well.
<h3>Pages</h3>
{% for post in site.pages %}
{% include archive-list-single.html %}
{% include archive-list-single %}
{% endfor %}
<h3>Posts</h3>
{% for post in site.posts %}
{% include archive-list-single.html %}
{% include archive-list-single %}
{% endfor %}
{% capture written_label %}'None'{% endcapture %}
@ -31,7 +31,7 @@ A list of all the posts and pages found on the site. For you robots out there is
{% endunless %}
{% for post in collection.docs %}
{% unless collection.output == false or collection.label == 'posts' %}
{% include archive-list-single.html %}
{% include archive-list-single %}
{% endunless %}
{% endfor %}
{% endfor %}

View File

@ -4,13 +4,13 @@ permalink: /tag-archive/
title: "Posts by Tags"
---
{% include absolute-url.liquid %}
{% include group-by-array.html collection=site.posts field='tags' %}
{% include base_path %}
{% include group-by-array collection=site.posts field='tags' %}
{% for tag in group_names %}
{% assign posts = group_items[forloop.index0] %}
<h3>{{ tag }}</h3>
{% for post in posts %}
{% include archive-list-single.html %}
{% include archive-list-single %}
{% endfor %}
{% endfor %}

View File

@ -7,7 +7,7 @@ share: true
comments: true
---
{% include toc.html %}
{% include toc %}
## Installation
@ -58,13 +58,13 @@ How Minimal Mistakes is organized and what the various files are. All posts, lay
minimal-mistakes/
├── _includes/
| ├── author-bio.html # bio stuff layout. pulls optional owner data from _config.yml
| ├── browser-upgrade.html # prompt to install a modern browser for < IE9
| ├── disqus-comments.html # Disqus comments script
| ├── footer.html # site footer
| ├── head.html # site head
| ├── navigation.html # site top navigation
| ├── browser-upgrade # prompt to install a modern browser for < IE9
| ├── disqus-comments # Disqus comments script
| ├── footer # site footer
| ├── head # site head
| ├── navigation # site top navigation
| ├── open-graph.html # Twitter Cards and Open Graph meta data
| └── scripts.html # site scripts
| └── scripts # site scripts
├── _layouts/
| ├── home.html # homepage layout
| ├── page.html # page layout
@ -296,7 +296,7 @@ Not sure if this only effects Kramdown or if it's an issue with Markdown in gene
### Social Sharing Links
Social sharing links for Twitter, Facebook, and Google+ are included on posts/pages by default. To hide them on specific posts or pages add `share: false` to the YAML Front Matter. If you'd like to use different social networks modify `_includes/social-share.html` to your liking. Icons are set using [Font Awesome](http://fontawesome.io).
Social sharing links for Twitter, Facebook, and Google+ are included on posts/pages by default. To hide them on specific posts or pages add `share: false` to the YAML Front Matter. If you'd like to use different social networks modify `_includes/social-share` to your liking. Icons are set using [Font Awesome](http://fontawesome.io).
---

View File

@ -5,7 +5,7 @@ title: "Posts by Year"
author_profile: false
---
{% include absolute-url.liquid %}
{% include base_path %}
{% capture written_year %}'None'{% endcapture %}
{% for post in site.posts %}
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
@ -13,5 +13,5 @@ author_profile: false
<h3>{{ year }}</h3>
{% capture written_year %}{{ year }}{% endcapture %}
{% endif %}
{% include archive-list-single.html %}
{% include archive-list-single %}
{% endfor %}