diff --git a/CHANGELOG.md b/CHANGELOG.md
index 91e8d5414b8e..b13eb1dcfa52 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,7 @@
- Improve Chinese `date_label` and `minute_read` translations in `ui-text.yml`. [#1205](https://github.com/mmistakes/minimal-mistakes/pull/1205) [#1211](https://github.com/mmistakes/minimal-mistakes/pull/1211)
- Add note to Quick-Start Guide about GitHub Pages hosting alternatives that allow 3rd party gem themes and Jekyll plugins.
- Add note to configuration documentation about Cloudflare minification as an alternative to `layout: compress`. [#1217](https://github.com/mmistakes/minimal-mistakes/pull/1217)
+- Show 4 latest posts in "You May Also Enjoy" module when `related: true` and no related posts are found due to `lsi` ([latent semantic indexing](https://en.wikipedia.org/wiki/Latent_semantic_analysis#Latent_semantic_indexing)) being disabled on GitHub Pages. [#554](https://github.com/mmistakes/minimal-mistakes/issues/554)
### Bug Fixes
diff --git a/_layouts/single.html b/_layouts/single.html
index 826e9b1743e3..7d3273524773 100644
--- a/_layouts/single.html
+++ b/_layouts/single.html
@@ -60,7 +60,7 @@
{{ site.data.ui-text[site.locale].meta_label }}
- {% comment %}{% endcomment %}
+ {% comment %}{% endcomment %}
{% if page.id and page.related and site.related_posts.size > 0 %}
{{ site.data.ui-text[site.locale].related_label | default: "You May Also Enjoy" }}
@@ -70,5 +70,15 @@ {{ site.data.ui-text[site.locale].related_label
{% endfor %}
+ {% comment %}{% endcomment %}
+ {% elsif page.id and page.related %}
+
+
{{ site.data.ui-text[site.locale].related_label | default: "You May Also Enjoy" }}
+
+ {% for post in site.posts limit:4 %}
+ {% include archive-single.html type="grid" %}
+ {% endfor %}
+
+
{% endif %}
diff --git a/docs/_docs/18-history.md b/docs/_docs/18-history.md
index a8af0bf5140d..7688860414c8 100644
--- a/docs/_docs/18-history.md
+++ b/docs/_docs/18-history.md
@@ -4,7 +4,7 @@ permalink: /docs/history/
excerpt: "Change log of enhancements and bug fixes made to the theme."
sidebar:
nav: docs
-last_modified_at: 2017-09-05T12:07:50-04:00
+last_modified_at: 2017-09-05T12:58:56-04:00
---
## Unreleased
@@ -20,6 +20,7 @@ last_modified_at: 2017-09-05T12:07:50-04:00
- Improve Chinese `date_label` and `minute_read` translations in `ui-text.yml`. [#1205](https://github.com/mmistakes/minimal-mistakes/pull/1205) [#1211](https://github.com/mmistakes/minimal-mistakes/pull/1211)
- Add note to Quick-Start Guide about GitHub Pages hosting alternatives that allow 3rd party gem themes and Jekyll plugins.
- Add note to configuration documentation about Cloudflare minification as an alternative to `layout: compress`. [#1217](https://github.com/mmistakes/minimal-mistakes/pull/1217)
+- Show 4 latest posts in "You May Also Enjoy" module when `related: true` and no related posts are found due to `lsi` ([latent semantic indexing](https://en.wikipedia.org/wiki/Latent_semantic_analysis#Latent_semantic_indexing)) being disabled on GitHub Pages. [#554](https://github.com/mmistakes/minimal-mistakes/issues/554)
### Bug Fixes
diff --git a/docs/_layouts/single.html b/docs/_layouts/single.html
index 826e9b1743e3..7d3273524773 100644
--- a/docs/_layouts/single.html
+++ b/docs/_layouts/single.html
@@ -60,7 +60,7 @@ {{ site.data.ui-text[site.locale].meta_label }}
- {% comment %}{% endcomment %}
+ {% comment %}{% endcomment %}
{% if page.id and page.related and site.related_posts.size > 0 %}
{{ site.data.ui-text[site.locale].related_label | default: "You May Also Enjoy" }}
@@ -70,5 +70,15 @@ {{ site.data.ui-text[site.locale].related_label
{% endfor %}
+ {% comment %}{% endcomment %}
+ {% elsif page.id and page.related %}
+
+
{{ site.data.ui-text[site.locale].related_label | default: "You May Also Enjoy" }}
+
+ {% for post in site.posts limit:4 %}
+ {% include archive-single.html type="grid" %}
+ {% endfor %}
+
+
{% endif %}