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:
@@ -21,7 +21,7 @@ layout: archive
|
||||
<h2 class="archive__subtitle">{{ year.name }}</h2>
|
||||
<div class="entries-{{ page.entries_layout | default: 'list' }}">
|
||||
{% for post in year.items %}
|
||||
{% 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' }} ↑</a>
|
||||
|
||||
Reference in New Issue
Block a user