Fix entries_layout: grid

Close #2639
This commit is contained in:
Michael Rose
2020-08-04 12:59:44 -04:00
parent 5741539e17
commit d57fe1de2c
7 changed files with 19 additions and 13 deletions

View File

@@ -25,14 +25,15 @@ layout: archive
{% endfor %}
</ul>
{% assign entries_layout = page.entries_layout | default: 'list' %}
{% for i in (1..categories_max) reversed %}
{% for category in site.categories %}
{% if category[1].size == i %}
<section id="{{ category[0] | slugify | downcase }}" class="taxonomy__section">
<h2 class="archive__subtitle">{{ category[0] }}</h2>
<div class="entries-{{ page.entries_layout | default: 'list' }}">
<div class="entries-{{ entries_layout }}">
{% for post in category.last %}
{% include archive-single.html type=page.entries_layout %}
{% include archive-single.html type=entries_layout %}
{% endfor %}
</div>
<a href="#page-title" class="back-to-top">{{ site.data.ui-text[site.locale].back_to_top | default: 'Back to Top' }} &uarr;</a>