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

@ -5,5 +5,5 @@ layout: archive
{{ content }}
<div class="entries-{{ page.entries_layout | default: 'list' }}">
{% include posts-tag.html taxonomy=page.taxonomy %}
{% include posts-tag.html taxonomy=page.taxonomy type=page.entries_layout %}
</div>