M _includes/archive-single.html => _includes/archive-single.html +1 -1
@@ 10,7 10,7 @@
{% assign title = post.title %}
{% endif %}
-<div class="{{ include.type | default: "list" }}__item">
+<div class="{{ include.type | default: 'list' }}__item">
<article class="archive__item" itemscope itemtype="https://schema.org/CreativeWork">
{% if include.type == "grid" and teaser %}
<div class="archive__item-teaser">
M _layouts/categories.html => _layouts/categories.html +3 -2
@@ 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' }} ↑</a>
M _layouts/category.html => _layouts/category.html +3 -2
@@ 4,6 4,7 @@ layout: archive
{{ content }}
-<div class="entries-{{ page.entries_layout }}">
- {% include posts-category.html taxonomy=page.taxonomy type=page.entries_layout %}
+{% assign entries_layout = page.entries_layout | default: 'list' %}
+<div class="entries-{{ entries_layout }}">
+ {% include posts-category.html taxonomy=page.taxonomy type=entries_layout %}
</div>
M _layouts/collection.html => _layouts/collection.html +3 -2
@@ 4,6 4,7 @@ layout: archive
{{ content }}
-<div class="entries-{{ page.entries_layout }}">
- {% include documents-collection.html collection=page.collection sort_by=page.sort_by sort_order=page.sort_order type=page.entries_layout %}
+{% assign entries_layout = page.entries_layout | default: 'list' %}
+<div class="entries-{{ entries_layout }}">
+ {% include documents-collection.html collection=page.collection sort_by=page.sort_by sort_order=page.sort_order type=entries_layout %}
</div>
M _layouts/posts.html => _layouts/posts.html +3 -2
@@ 15,13 15,14 @@ layout: archive
{% endfor %}
</ul>
+{% assign entries_layout = page.entries_layout | default: 'list' %}
{% assign postsByYear = site.posts | where_exp: "item", "item.hidden != true" | group_by_exp: 'post', 'post.date | date: "%Y"' %}
{% for year in postsByYear %}
<section id="{{ year.name }}" class="taxonomy__section">
<h2 class="archive__subtitle">{{ year.name }}</h2>
- <div class="entries-{{ page.entries_layout | default: 'list' }}">
+ <div class="entries-{{ entries_layout }}">
{% for post in year.items %}
- {% 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' }} ↑</a>
M _layouts/tag.html => _layouts/tag.html +3 -2
@@ 4,6 4,7 @@ layout: archive
{{ content }}
-<div class="entries-{{ page.entries_layout | default: 'list' }}">
- {% include posts-tag.html taxonomy=page.taxonomy type=page.entries_layout %}
+{% assign entries_layout = page.entries_layout | default: 'list' %}
+<div class="entries-{{ entries_layout }}">
+ {% include posts-tag.html taxonomy=page.taxonomy type=entries_layout %}
</div>
M _layouts/tags.html => _layouts/tags.html +3 -2
@@ 25,14 25,15 @@ layout: archive
{% endfor %}
</ul>
+{% assign entries_layout = page.entries_layout | default: 'list' %}
{% for i in (1..tags_max) reversed %}
{% for tag in site.tags %}
{% if tag[1].size == i %}
<section id="{{ tag[0] | slugify | downcase }}" class="taxonomy__section">
<h2 class="archive__subtitle">{{ tag[0] }}</h2>
- <div class="entries-{{ page.entries_layout | default: 'list' }}">
+ <div class="entries-{{ entries_layout }}">
{% for post in tag.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' }} ↑</a>