From 48c887fcb3fd0a419487dac39d395595da47a48c 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 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bd1180b..ce1e30e 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 c3a9976..02e96eb 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 %}
-- 2.43.0