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:
@@ -4,6 +4,6 @@ layout: archive
|
||||
|
||||
{{ content }}
|
||||
|
||||
<div class="entries-{{ page.entries_layout | default: 'list' }}">
|
||||
{% include posts-category.html taxonomy=page.taxonomy %}
|
||||
<div class="entries-{{ page.entries_layout }}">
|
||||
{% include posts-category.html taxonomy=page.taxonomy type=page.entries_layout %}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user