Configure entries layout list or grid

Switch between list or grid view by adding `entries_layout` to YAML Front Matter.
This commit is contained in:
Michael Rose
2018-03-20 14:38:55 -04:00
parent d6605146ac
commit 467a748815
6 changed files with 8 additions and 8 deletions

View File

@@ -38,7 +38,7 @@ layout: archive
<h2 class="archive__subtitle">{{ category[0] }}</h2>
<div class="entries-{{ page.entries_layout | default: 'list' }}">
{% for post in category.last %}
{% include archive-single.html %}
{% include archive-single.html type=page.entries_layout %}
{% endfor %}
</div>
<a href="#page-title" class="back-to-top">{{ site.data.text[site.locale].back_to_top | default: 'Back to Top' }} &uarr;</a>