From 53ad4d343ad5d73cec5cc698e9dc05c98618b9b3 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Tue, 4 Aug 2020 12:32:54 -0400 Subject: [PATCH] Fix grid `entries_layout` in home.html --- CHANGELOG.md | 6 ++++++ _layouts/home.html | 5 +++-- docs/_docs/18-history.md | 8 +++++++- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bd1180b4..ce1e30ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## [4.20.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.20.1) + +### Bug Fixes + +- Fix grid `entries_layout` in home.html. [#2616](https://github.com/mmistakes/minimal-mistakes/pull/2616) + ## [4.20.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.20.0) ### Bug Fixes diff --git a/_layouts/home.html b/_layouts/home.html index c3a99768..02e96eb8 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -12,9 +12,10 @@ layout: archive {% assign posts = site.posts %} {% endif %} -
+{% assign entries_layout = page.entries_layout | default: 'list' %} +
{% for post in posts %} - {% include archive-single.html type=page.entries_layout %} + {% include archive-single.html type=entries_layout %} {% endfor %}
diff --git a/docs/_docs/18-history.md b/docs/_docs/18-history.md index 66fca1fd..5b2e4231 100644 --- a/docs/_docs/18-history.md +++ b/docs/_docs/18-history.md @@ -5,10 +5,16 @@ permalink: /docs/history/ excerpt: "Change log of enhancements and bug fixes made to the theme." sidebar: nav: docs -last_modified_at: 2020-08-04T11:16:42-04:00 +last_modified_at: 2020-08-04T12:31:35-04:00 toc: false --- +## [4.20.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.20.1) + +### Bug Fixes + +- Fix grid `entries_layout` in home.html. [#2616](https://github.com/mmistakes/minimal-mistakes/pull/2616) + ## [4.20.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.20.0) ### Bug Fixes