DRY up archive include

- Combine grid and list view into one include
This commit is contained in:
Michael Rose
2016-03-19 20:58:17 -04:00
parent da90ccaf49
commit 109f4ffb44
16 changed files with 75 additions and 76 deletions

View File

@@ -7,6 +7,6 @@ author_profile: false
<h1 class="page__title">{{ page.title }}</h1>
{% include base_path %}
{% for post in page.posts %}
{% include archive-list-single.html %}
{% include archive-single.html %}
{% endfor %}
</div>

View File

@@ -57,7 +57,7 @@ layout: default
{% endif %}
<div class="grid__wrapper">
{% for post in site.related_posts limit:4 %}
{% include archive-grid-single.html %}
{% include archive-single.html type="grid" %}
{% endfor %}
</div>
</div>